Guest User

Facebook Api Login As Fan Page

a guest
Jan 9th, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.50 KB | None | 0 0
  1.  
  2.  
  3. ********************
  4. Facebook Api Login As Fan Page
  5. http://urlin.us/bz3xy
  6. (Copy & Paste link)
  7. ********************
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. +1 thanks –Esha Aug 27 '14 at 7:31 add a comment up vote 4 down vote The URL to the fan page will have the ID in it. To achieve this we would need to run following script at our app's "Connect URL" location and ask one of page admins to go through our permission request process during facebook login: //API init code is omitted FB.login(function() { FB.api('/me/accounts', 'get', {}, function(response) { console.log(response); }); }, {perms:'publishstream,offlineaccess,managepages'}); Now if you have Firebug console installed you should be able to explore returned response and find accesstoken fields for all fan pages current user is managing. By clicking or navigating the site, you agree to allow our collection of information on and off Facebook through cookies. If you need more examples take a look at Velocity built-in directive sources. After playing a guessing game for an hour trying to compile a simple piece of code that took 5 minutes to write, I thought maybe it's time to do a little research. Works for both graph api and rest api. Click whether or not the page represents a real celebrity or famous person. Now you are helping others, just by visiting wikiHow. You can upload the photo from your computer or a website. Click "Save Info." 7 Decide whether you want to enable ads. Having a Facebook account will be useful because you'll already be familiar with Facebook and will have friends you can invite to become fans of your page. Facebook Graph API client. By clicking or navigating the site, you agree to allow our collection of information on and off Facebook through cookies. Now I need to get the page ID to display like box in my website. Artist, band, or public figure: For this option, you'll need to select the category for the type of artist, musician, or public figure you'll be promoting as well as his or her name. Thanks! Yes No Not Helpful 5 Helpful 21 Do I have to pay to create a fan page? wikiHow Contributor No, creating a fan page is free. kasun, how are you getting the id of the page creator? shareimprove this answer edited Jan 5 '11 at 21:09 answered Jan 5 '11 at 21:02 byron 60031022 add a comment up vote 0 down vote $pages = $facebook->api(array( 'method' => 'fql.query', 'query' => 'SELECT pageid FROM pageadmin WHERE uid = '.$uid.'' )); $uid being the profile id# of the FB user! Fql query using PHP SDK shareimprove this answer answered Dec 31 '10 at 23:24 Brandon 7610 add a comment up vote 0 down vote goto after you logged in to your facebook press the green button on top right ( "insight for your domain") select the drop down value for your page voila, you see the pageid (I saw this on facebook forum) shareimprove this answer answered Jan 2 '11 at 21:42 kite 8951023 add a comment up vote 0 down vote Here are list of functions which you can add in facebook sdk. So now our velocity.properties file looks like this: userdirective=ca.sergiy.velocity.TruncateDirective, ca.sergiy.velocity.TruncateBlockDirective userdirective.truncateBlock.maxLength=10 userdirective.truncateBlock.suffix=. Base 64 decoder with url-safe mode support. Article Info Categories: Image Hosting and Sharing Websites In other languages: Portugus:Criar uma Pgina no Facebook,Espaol:hacer una pgina de fans en Facebook,Deutsch:Eine Facebook Fanseite erstellen,Franais:crer une page de fan sur Facebook,Italiano:Creare una Fan Page su Facebook,: Facebook,Bahasa Indonesia:Membuat Fan Page Facebook,Nederlands:Een fanpagina op Facebook aanmaken,: ,: (Facebook Fan Page) ,etina:Jak na Facebooku vytvoit fanoukovskou strnku,: Discuss Print Edit Send fan mail to authors Thanks to all authors for creating a page that has been read 876,278 times. Add a photo Upload error Awesome picture! Tell us more about it? Click here to share your story. I am using my personal Facebook account to enter my business pages it is better to have an independent account to enter my business pages? Answer this question Flag as. Share what's new in your life on your Timeline. –diggersworld Sep 2 '10 at 14:55 You "think"? You "expect"? Did you even try specifying the page's ID as the uid to see what happens? Also, I added another link for you to check out. If you'd like to create a Facebook fan page, follow these easy steps and you'll be building a following in no time at all. 5 Upload a profile picture. Method getType() returns BLOCK or LINE constants which determine a directive type. Powered by Mediawiki. Stack Overflow Questions Developer Jobs Tags Users current community help chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. I have tested it successfully with the Official PHP SDK v3.0.1 The required application permissions would be createevent and managepages An Example would look something like this: //Facebook/Fan Page Id $pageid = '18020xxxxxxxxxx'; //Event Start Time $nextmonth = time() + (30 * 24 * 60 * 60); //Event Paramaeters $params = array( 'pageid' => $pageid, // **IMPORTANT** 'name' => 'Test Event Name', 'description' => 'This is the test event description. It all works but there's one small issue. It returns the page NAME, ID, ACCESSTOKEN and CATEGORY (not needed in this context). Its URL has the following format: / ?v=wall Posting to this wall on behalf of a page admin is a bit more tricky. I have allowed permissions for managepages and can now see my pages in the accounts. You may receive SMS Notifications from Facebook and can opt out at any time.Create AccountSecurity CheckThis field is required.Can't read the words below? Try different words or an audio captcha.Please enter the words or numbers you hear.Try different words or back to text.Loading.Enter the text you see above.Why am I seeing this?Security CheckThis is a standard security test that we use to prevent spammers from creating fake accounts and spamming users. In this step, you'll provide basic information about your cause. –Peter Bailey Sep 2 '10 at 15:11 I did try specifying the pages ID as the UID and nothing happened. Then call /accounts?accesstoken= This will list all the pages the user has access to and will provide the access tokens for each. For example, the Stack Overflow fan page The ID is 105665906133609 Some pages have aliases, which are also usable as the ID. So, VERY IMPORTANT: The ID is what you pass to set what page you are posting TO, and the ACCESSTOKEN is what you pass to set who you are POSTING AS 5a02188284
Add Comment
Please, Sign In to add comment