Facebook Graph API Integration into my API - android

I am developing an API that will be used solely for a mobile app, the mobile app allows users to log in via facebook and grant the app permission to access the users facebook friends list and post on their wall.
However I have some confusion as to where I integrate into the API and where the app developers integrate. I assume the login with facebook part is done by the app developers, who then pass the facebook access token into the API for it to store/retrieve friend list and make posts on the users wall.
Am I correct in assuming this? And if so can I test my part the implementation by retrieving friends list without having the app developers do their part first?
Thanks

First you have to register your app with your facebook id in developer.facebook.com then you will get the app id which you have to put into facebook login that generate access token for the process

To make any call to the Facebook API you need an app ID. after receiving it, you can make calls to the API from your controller using the Facebook php SDK

Related

How to access Picasa Albums from Android App

I am trying to access Picasa Albums using PicasawebService. This service requires authentication. How do I do this from an Android device, similar to what I have to do with Facebook Authentication?
What I mean is that Facebook SDK 4.x has a LoginManager, where I specify that I want to Login to my Facebook account with certain access privileges. If I am not currently logged in into my FB account, then FB login will show up, then it will ask me if I want to allow the user to access that was requested by the LoginManager.
On an Android device, I am already logged in, since I have to have a google account to have an Android device. Can someone point me to some sample code that will accomplish the above.
Thank You,

Login with Facebook option trigger suggest to download an app

Yesterday I logged in to Airbnb with my Facebook account on my OSX. Shortly later I got a notification both on my iPhone and computer saying
"Airbnb is available to install on your iPhone"
My question is, does anyone here know how this was done? Is this a feature available to anyone who creates Facebook login? Any advice on how this was done is well appreciated.
Sincerely
Axel
I bet the notification is sent to you by Airbnb, right? If so, it's pretty easy to do. You give your facebook account information to Airbnb by login with facebook in there webpage. Then they just send a graph api request to facebook with your authorization access token, and you get an notification. For details you can refer to doc here: https://developers.facebook.com/docs/games/notifications
I found out what I was talking about. Facebook is adding a new feature which ask users if they want to get a link to the mobile app.
This is in Beta right now but you will automatically eligible for the feature if:
You have integrated the new Facebook Login on your website. You must be using at least version 2.0 of the Graph API and Login Dialog. Send to Mobile is not available for apps which invoke the Login dialog using Graph API v1.0.
You have integrated Facebook Login into your iOS or Android app. The "Single Sign On" switch within iOS and Android section of your app's dashboard must be set to "Yes"
Added your iOS App Store ID and/or the Android package name under which your app is listed in Google Play to your Facebook app's dashboard.
https://developers.facebook.com/docs/facebook-login/send-to-mobile

fb graph api response not returning friends who made a log in to custom app

I created an android app & same in facebook.
I am able to login in FB and others also from android app.
But while querying the friends in graph api tool by keeping my app as application, I am not getting friends ID who accepted my app and made a log in.
So here what else is required to get friends also in the graph api call.
TIA.

Foursquare API - Sign up if user does not have account

My application is using the Foursquare API with some calls that requires the access token. My question is that when I am retrieving the access token and redirect the user to Foursquare to Log In, I see that their is a Sign up link. When I click the link the user get directed to the playstore. I do not want the user to download the Foursquare App. I want them to be able to signup with a web view.
Please help me with this
If your user does not have a Foursquare account and needs to sign up for one, it's very likely that they do not have the app itself either. The best way to experience and learn about Foursquare is through the native app itself—it is difficult to teach a user why they should use Foursquare through a mobile web experience. There is a sign-up flow that users can go through with the native app.
you can achieve this using socialauth android
The api provides foursquare login to get profile and contacts. using access token you can make your own custom calls.

Using Facebook Single Sign On (or other features) without the official Facebook app

I would like to integrate Facebook into an application - enable login using Facebook credentials (Single Sign On, to login to a third-party service), and also share some wall posts.
The problem is, I don't want to depend on the installation of the official Facebook app.
I heard about some solution involving opening Facebook login from a WebView, but didn't find details.
Anyone has experience with that?
Thanks
Yes you can do it using the OAuth for getting permission, then use the Graph API to post on users walls.
Please see this link for OAuth: http://developers.facebook.com/docs/authentication/
And this link for Graph API documentation:
http://developers.facebook.com/docs/reference/api/
especially for posting http://developers.facebook.com/docs/reference/api/post/
All Facebook APIs built on the idea that you perform request from a particular application (identified by application id). So the answer is NO, you cannot perform API queries (as well as authentication) without having registered an app.

Categories

Resources