开发者

More advanced android facebook example

开发者 https://www.devze.com 2023-03-27 08:13 出处:网络
I\'m having some problems with facebook integration on my android app. I\'ve looked at the examples that come with the api and i can do the things shown in those ok. But i\'m having problems with othe

I'm having some problems with facebook integration on my android app. I've looked at the examples that come with the api and i can do the things shown in those ok. But i'm having problems with other things such as getting single sign on to work properly, authentication across multiple activities in the app and loading a facebook page (non-api call) without being ask开发者_运维技巧ed to log in again.

Anyone have examples that show these?


When making API calls, you usually need to include the access_token parameter that was issued when the user authenticated. This is how facebook knows who you are when you make requests.

Similarly, when loading facebook pages (not using the API), you have to remember to send the cookies Facebook sent when the user logged in. Normally the browser keeps track of these automatically, but in your program or app you might have to handle them manually.

I don't have experience with Android specifically, and I don't know what you're using to load and render facebook pages, but knowing how facebook is keeping track of logged-in users should give you an idea of where to start. A google search or two should get you on your way.


Go to facebook.java class and change package name com.facebook.katana to com.facebook.katanaaa or any one of your own choice. This worked for me .

0

精彩评论

暂无评论...
验证码 换一张
取 消