Invite a friend to app using Facebook Graph API - android

I'm trying to invite a friend to use my Facebook app, using the "apprequest" method, as described in this link: https://developers.facebook.com/docs/reference/dialogs/requests/.
However, only friends that are already using the app can see the request!
How can I send an invitation to someone who isn't already using the app?
Thanks.

It turns out I was using the right code all along, but my app was in sandbox mode!
Turning off sandbox mode fixed my issue! :)

Related

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

Facebook unity sdk: is it possible to send friend invites/app requests to non app users?

I'm working with the official facebook sdk and example scene for unity and am sending app requests using : FB.AppRequest() which returns a list of friends to send invites to.
However no matter what I try, I only get a list of friends associated with the app and cannot see any other friends who haven't played the app.
I have even tried setting the 'app_non_user' filter, but this makes no difference.
I have read on the Invitable_Friends api, but am not sure how this would be implemented in the unity sdk.
Any advice would be much appreciated. Thanks
Your app must be approved by Facebook to get people's friends lists beyond people using the app. Look in the developers.facebook.com section to find how to do this. I haven't done this, but a game I worked on needed to do this.
Getting approved involves sending your app and it goes through an approval process.
Here's the relevant bit:
https://developers.facebook.com/docs/apps/faq#invite_to_app
"If your app is a game and has a presence on Facebook Canvas:
You can use the requests Dialog and set filters=app_non_users to filter the dialog to only show people who don't use the app."

Cordova / Phonegap app - change Facebook account

So I'm building an app using Phonegap, and will provide social login via Facebook, Google and Twitter.
When logging to one of those, it asks about permissions. Grant it, and you are logged in. Great. My problem is, if I want to connect with another account, how can I do that ? On a regular browser, I would go to Facebook, disconnect, connect the second account, and then come back to the app to connect with it. But Phonegap uses webviews, and no URL is available to get to Facebook and change user. Though, even when disconnectiong, it's impossible to connect with another account.
How could I solve that ?
Thanks ahead !
Impossible. Please refer to facebook documentation here.
https://developers.facebook.com/docs/facebook-login/
Actually here is the solution. Clear all the webview cookies when the user hit logout button using this plugin :
https://github.com/bez4pieci/Phonegap-Cookies-Plugin/tree/master
it is impossible please implement core Facebook sdk and you will get full control over Facebook sdk singing and sign out option for iOS here is a detailed tutorial.
http://m-farhan.com/2014/03/ios-facebook-sdk-tutorial/

what are the steps for submitting android application into Facebook for approval

I have created an Android application which uses Facebook Authentication.
When posting a text message through my application, it appears on my wall.
But others cannot see that post even though it is publicly available.
It seems I need to submit my application to Facebook to allow others to see my post.
Can anyone help me, how can I submit my application for Facebook approval?
Go to Facebook developer official site and login and then select the Particular app and go to Status & Review and turn ON Do you want to make this app and all its live features available to the general public? check box and remember it'll take to 2-3 hours for reflection. see the below image
As i faced the same issue in past and solved it by this way.Hope this works for you.

Custom Facebook Android App

I have done logging through Faceboo sdk in android and it was successful. Now, What I want is to create a custom login screen and on the press of submit it should send the request directly to facebook server like the original facebook app. I don't want to redirect to facebook's generated login screen. You can say it is like developing our own facebook app. The problem is I'm not getting any API to do this. Does any one knows how to do it..?
Having the user type in their username/password on your own custom login screen is not supported by Facebook. You need to use SSO or the dialog option.
The only solution that I know is to implement sign-in feature at server side, refer these links for more details: http://developers.facebook.com/docs/concepts/login/login-architecture/, http://developers.facebook.com/docs/howtos/login/login-as-app/
I was in similar situation and I'm going to do it. Please let me know if you succeed by this or if you have other solution.

Categories

Resources