I want to get the wall posts on a Facebook page on my Android app and present it (It would be better to present it in the layout similar to official Facebook app for Android).
I have just started using Facebook SDK and am able to log in/out of my profile. I read various stackoverflow posts on this topic but I couldn't get things working with any of them. All I understood is that Graph API can be used to get Facebook page's contents. However, to access Facebook pages, it needs some authorization tokens, which I couldn't really understand. There being no simple actual tutorial on how to do this, it seems complicated to me.
Can anyone please simplify the steps to get the posts from Facebook page and present it in my app? Also, is it possible to get official Facebook App style layout for the presentation of page wall contents inside my app?
Any help would be appreciated.. thanks a lot in advance.. :)
Related
I would like to embed a business Facebook page on my application. I tried to find information, but there's nothing. I don't know if I should use the SDK or graph API and how I should use it. I found a post here some years ago, but no one answered. Can you please help, at least give me some directions?
Thanks!
SOLUTION:
It uses the webview with setWebViewClient, otherwise, it redirects to the browser. But the important thing I was missing is that the Facebook page has to be PUBLIC.
was just curious as to how I can go about reading Facebook status posts from a particular page through my Android application.
I looked into the Facebook API but that seems to be more related to making Facebook applications, which wasn't my intent.
If anyone can point me in the direction of a guide or link that will explain to me how to do this it will be much appreciated.
Well the whole idea of the Facebook API is so that you can call their functions to give you access to Facebook content. If you want to incorporate them into your Android Application, try using their Android SDK
While using the Facebook SDK for Android, I realise Facebook uses their own dialogs with forms so the user can enter their information.
Is there a way to use my own forms and send the data to Facebook to authenticate? Or do I have to use theirs? If so, is that the same case for uploading pictures, posting on your wall, comment, etc.
I'm not sure about uploading pictures, but I ran into the same problem some time before with the forms and after a lot of research reached the conclusion that you have to use their forms. The only application AFAIK that uses custom Facebook login on Android is Facebook for Android (official application).
You might be able to figure out a way by tracing the URL that is being used by Facebook for authentication, but those sorts of hacks won't be reliable as Facebook may change the API on you. It sucks, yeah.
Here is some more information, Stack Overflow question Android -> Facebook login without a dialog?.
Good day to all,
Can some one guide me in displaying a simple post from facebook application in webview in android application. When i post a message in FB, i need to show that message in my new feeds in emulator for android. I am able to post the message, But i need to display the posted message in the emulator screen. How can i do that. I have done with the facebook login screen, Authentication code. I am struck with displaying new feeds in native FB manner.
Any working example will be fine please send me the link.
This is a very good tutorial, and should answer your questions on this subject.
Facebook Integration
EDIT:
Here is an excellent facebook API. I use it for many projects. Works incredibly well!
Easy Facebook
I'm trying to redirect user to specific web page after log in. I'm using Android Facebook SDK. Full internet of examples how to post on user's wall, but I couldn't find any examples or advices how to redirect for example to my app fan page. I have analyzed SDK code - Facebook.java, I saw that they're using redirect_uri parameter, so I've tried to write this parameter myself, but I got only API error code (given URL is not allowed by the App configuration) or page not found message. Maybe I can't do it by using Android Facebook SDK and I need to use different tools, api? Any advice will be appreciated.
Thanks in advance.
I don't know if you still have this problem now.
I'm not sure also if i understood your problem fully, but if you had the same problem that led me to this page (I wanted my android-application to call the browser at a specific page) this code will do the job.
PeladroidLiteActivity.this.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.peladroid.com")));