Android Facebook client token

I'm the new Facebook SDK for Android. I want to get fan page contributions from Facebook through the Facebook graph API. I know it's possible if the user is logged in

Now my question is:

What is the solution to get the public Facebook feed of fan pages without logging in? What is a client token and what is its purpose? There appears to be no documentation on client token usage

I can't find any examples or descriptions in the document

Thanks for your help

resolvent:

Without login, you can use the application access token. It is always valid, but you cannot access restricted pages. If the page is restricted by age or location, you must use the user token - otherwise you will not be able to detect whether users are allowed to view the page or its contents

For more information about tokens and how to generate them:

> https://developers.facebook.com/docs/facebook-login/access-tokens > http://www.devils-heaven.com/facebook-access-tokens/

You can also check the API reference to find out which tokens can be used: https://developers.facebook.com/docs/graph-api/reference/page/feed#read

By the way, never use application tokens in client code because they contain application Secrets (called "secrets" for some reason). Extension page tokens are the same because they are always valid. Anyway, you should cache the results on your own server and use Android applications to access the server / database, Instead of clicking directly on the graph API

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>