124

I have a Facebook Page that I want to get some things from it. First thing are feeds and from what I read they are public (no need for access_token). But I want to also get the events... and they aren't public and need the access_token.

I don't want the user to login in Facebook or anything like that. I just want to push all the data I can from this only page. That's why I already discarded many examples I found here and the one at https://developers.facebook.com/blog/post/500/ , because they want the user to login or require some user action I'm not interessed.

What I want is that my Facebook Application have full authorization and access_token to push the data from this one Facebook Page that I own (admin). Is this possible? I already tried many things but nothing seems to work.

I tried clicking at this: https://www.facebook.com/dialog/oauth?client_id=150635421702954&redirect_uri=http://MY_URL/&scope=manage_pages&response_type=token&fields=access_token - changing MY_URL to my site's and it requests authorization to edit every page I own. Even not being what I want I clicked but had no access_token in return...

GEOCHET
  • 21,119
  • 15
  • 74
  • 98
Rafael 'BSIDES' Pereira
  • 2,951
  • 5
  • 22
  • 24
  • To get events I do this now (the access_token expires a lot): 1 - Get a token from the Graph Explorer 2 - Paste it in my code below: `var authToken = 'THE_CODE_I_GOT';` `var feedQuery = 'graph.facebook.com/MY_PAGE_ID/feed';` `var feedURL = feedQuery +'?access_token='+ authToken +'&callback=?'; ` `$.getJSON(feedURL,function(data){ `var d = data.data; for( i=0; i < d.length; i++) { d[i].message ? $("#list").append('
  • '+ d[i].message +'
  • ') : ''; // lots of other stuff, you got it } });` – Rafael 'BSIDES' Pereira Nov 22 '11 at 18:40
  • 1
    You can get a permanent token: http://stackoverflow.com/questions/17197970/facebook-permanent-page-access-token/17234650#17234650 – Josh Oct 25 '13 at 03:19