0

I'm looking for a way to be able to manage our page's Facebook tabs automatically, without needing an admin to log in. I tried using using the related app's ID and secret as suggested in this SO answer (FB docs) and that gets me access to the page and it seems all of the data on the page except tabs. When I try to access /{page-id}/tabs I get { data: [] } as the response. Page API endpoints I have tried work fine.

I have also tried /{pageId}?fields=access_token as suggested in this SO answer and it just retuned the app ID, the access token field completely absent. I tried that again using a user access token and it returned a token, but the Access Token Debugger said the token expires in one hour.

I'm trying to automate the removal and reordering of tabs, but if the user needs to log in an hour before this happens it defeats the purpose. Is there any way I can get a permanent access token for a page that will return tabs? Is there any way to accomplish this with the app id/secret access token method?

Community
  • 1
  • 1
donut
  • 9,427
  • 5
  • 36
  • 53
  • 1
    (Why didn’t you) read the docs: https://developers.facebook.com/docs/apps/changelog#v2_2_changes, https://developers.facebook.com/docs/graph-api/reference/v1.0/page/tabs/, https://developers.facebook.com/docs/facebook-login/access-tokens#extendingpagetokens – CBroe Jan 26 '15 at 21:32
  • Thank you, @CBroe. Those links are very helpful. I missed them when I was looking through the docs. This is the first time I've really delved into the Facebook API and I am still unfamiliar with the docs. I looked on those pages but missed those sections. – donut Jan 26 '15 at 21:47

1 Answers1

0

It looks like there is no way to get an access token for a page with only an App ID and secret. You have to have a user with access log in and give you their access token. However, with CBroe's helpful links I was able to get a never expiring page access token. You can see the steps I took in this answer to almost the same question.

Community
  • 1
  • 1
donut
  • 9,427
  • 5
  • 36
  • 53