I'm using Facebook SDK 3. How can I get the public status of a special page in Facebook without authentication? How can I put a list of all of a Facebook page's status updates in Android?
I think you can get what you want by the facebook graph. Go and read out the documentaion for the paging section. you will find out the answer.!!
heres the link, This may help.: Facebook Graph API
Related
I'm trying to create an android app that shows the facebook public page post. I tried to use facebook android sdk and it seems that the app needs to be review but my app does'nt need to login the user, I want only use my own access token. So I try to use restfb but I'm facing problem when I use it. So my question is:
Without user login and using only my access token. What is the best method to use when getting the facebook public page post? android sdk or restfb.
note: I do not own the page
Thank you in advance to see my Question.
I have task of facebook in my android application. I have to integrate Facebook SDK for Authentication by facebook. When I use facebook api to get the feed of user that time i got the #JSON response from the server side.
So I made the custom layout to show that user's feed.
But I need to show load the user feed in my webview in Android.
So Facebook provide any #Url for the user feed to load that Url webview? so we show facebook feed like #browser.
Officially it is not possible to pass the Facebook SDK Token to a WebView. As far as I know it is currently not possible to do it.
One workaround I used in one of my apps (to display a like button before it was part of the SDK) is to set the Login Dialog to web only. By doing this the Facebook SDK creates a LoginDialog using a WebView whereby it has an active Facebook session after login.
This can be done by setting the LoginBehaviour of either the LoginManager or the LoginButton:
login.setLoginBehavior(LoginBehaviour.WEB_ONLY);
Please be aware that this is only a workaround and could stop working in the future.
Just open m.facebook.com directly, this way it will take you to user's wall after login. and As its already logged in by authentication, session will remain active.
I'm wondering if it's possible to use Facebooks Android SDK to open up a Facebook WebView but instead of showing facebook related stuff I wanna show my custom page which is using Facebook Comments Social Plugin.
The reason? I wanna make use of the cookies that are stored in that WebView so that a user doesn't need to login again if he's already been logged in. And in the case that he's not logged in, he can login using the SDKs Login Flow.
Is any of this possible?
Thank you!
In Android project trying to have a button to post on wall in facebook by user. When that button is clicked need to check whether user is already logged in using other facebook app if so i need to open Post On Wall Dialog with prefilled data to be shared. Please direct me in this to achieve.
I tried following this tutorial http://www.integratingstuff.com/2010/10/14/integrating-facebook-into-an-android-application/
but after asking for user credentials in a webview the page navigates to main activity instead of opening the post on wall dialog. Thanks in advance.
Have you tried using the Facebook SDK website? Try looking at the below two links on the Facebook SDK website:
How to log in:
http://developers.facebook.com/docs/howtos/androidsdk/3.0/login-with-facebook/
How to publish to a feed:
http://developers.facebook.com/docs/howtos/androidsdk/3.0/publish-to-feed/
There is also an example application provided with the Facebook SDK 3.0 which can be loaded into eclpise and onto a device for you to better understand how it works (need to add your own APP key of course). There is also the Scrumptious Tutorial on the Facebook SDK site that can run you through everything.
Found here:
http://developers.facebook.com/docs/tutorials/androidsdk/3.0/scrumptious/
I have made an application in which I have used the Facebook API. It is working properly but it shows me the Facebook login page on first view. But I want particular page of Facebook instead of the Facebook login page. How and where can I pass the URL of a particular page on the API of the Facebook login page?
You are using the API incorrectly. The API allows your phone to have access to a user's profile data, not load pages. If you want to point the user to a specific page, you can do that through the browser. If you want the user to be able to post on a wall or do some other functionality through your app, you must get the data from the user in some way (through facebook's prebuilt dialogs for android, or your own GUI) and then form a request to the facebook API with the correct values.
See the Graph API documentation, which will tell you what you can and can't do with the facebook API.