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.
Related
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 am making a calendar application and I want to be able to display the events that are linked to my Facebook account. Now, I know that I need the Facebook SDK for that and I already installed it, but I don't know what the next step is..
first you need to access facebook user information after accessing these informations you can easily link them to your calender app
Check these links for taking image of user profile similarly u need to get all details of Users.
Image of Logged User...
Friends Birthday list...
Integrating facebook in your Application :
Github for Facebook.
Include Graph API for Facebook to access user information
use graph API and use
211600268?fields=id,events,friends.fields(events)
the id used above should be replaced by your own facebook id
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
We're developing an app for iOS and Android that has a rather odd requirement. One of the tabs of the app opens up the client's Facebook page. So here's our desired functionality:
The user logs in using Facebook's SDKs (for iPhone and Android)
We retrieve the access token and our application flow starts
When the user clicks the Facebook Page tab we load a UIWebView pointing to the URL of Facebook page.
The user should be able to interact with the Facebook page right away.
So what happens is steps 1-3 work normally. However, because this UIWebView hasn't been authenticated on Facebook before, it doesn't have a valid session. Hence the user is required to login again in this web view in order to interact with the page.
Is there a way to use the token that we have from the Facebook login process when loading the UIWebView in order to avoid having to sign in again?
Thanks.
I haven't tried wht are you trying. But i am opening other user's profile page,and its working. I am doing it this way. https://graph.facebook.com/search?q=SEARCH_STRING&type=user&access_token=USER_ACCESS_TOKEN. Hope it will help you.
I have Facebook and Twitter integration in my app. For Facebook I use the API they provided and for Twitter I open a WebView for Oauth.
To save the Twitter key I get back from Oauth I have to use CallBack. However using CallBack lets the user see a black screen (for less than a second) before going to the activity with the sharing options.
Is there a way I can avoid this black screen.
Or better:
Can I make a WebView pop-up like the Facebook API does? If yes, how can I achieve this and how can I save the key I get back from Oauth?
I had the same problem that you and I created a Twitter Login Button library which do the same as the Facebook Login Button provided in the example of the Android API.
You can found the code on Google Code.
Basically it display a webview containing Twitter website to allow the user to click on Allow and save the token and token secret. You can easily use this library with Twitter4j for example.