I'm using FB Unity SDK v7.13.0 in my game and there's a problem with second login prompt when using AppRequests. If the user does not have FB app installed and is already logged in, it works flawlessly. But, if the user has the FB app installed and has logged in from the game, when the game tries to send AppRequest (send a game gift to friend), the app opens up a webview asking them for login details. Is there any way to make plugin to login only once?
Related
I'm implementing a game which features inviting your Facebook friends to your app using the Facebook SDK.
The code I'm using is:
FB.Mobile.AppInvite (new System.Uri(appLink), null, callback);
The app link is the proper one setup in the facebook page of the app.
The problem is this: the user doesn't receive a notification inside the FB app to install my game. Instead, you have to go to the Facebook App -> Apps -> App invites and it appears there. In the Facebook docs it says the user should receive a notification to invite.
What is the issue here?
PS: the app is not live yet, but the friends that are invited are set as testers.
I'm writing a hybrid app with Ionic and the workflow I imagine for a perfect facebook integration would be the following:
Scenario of a user logged in facebook with a native app:
Open my app
Touch login with facebook
Be prompted for facebook permissions and approve
Be directed to the desired screen of my hybrid app
Scenario of a user logged in facebook with his mobile browser:
Open my app
Touch login with facebook
Be prompted for facebook permissions and approve
Be directed to the desired screen of my hybrid app
Scenario of a user not logged in facebook (both in the native app and mobile browser):
Open my app
Touch login with facebook
Be prompted for facebook credentials
Be prompted for facebook permissions and approve
Be directed to the desired screen of my hybrid app
Is it possible to achieve as the mechanisms used to save session of a native app and a web app (facebook website) are way different?
How can I know if the native app is installed and once I know how can I use its session to prompt the user for permissions (as the android native apps do)?
Thanks in advance
First of all i have downloaded the Facebook app form app store and logged in there and then i downloaded the Hackbbok form this url https://github.com/facebook/facebook-ios-sdk and installed into my phone through xcode.
When Hackbook application is launched it shows "Login with Facebook" button. When i click on that button it opens the facebook app which i downloaded form app store and then re launches Hackbook. But Hackbook still asks for login.
But when i uninstall facebook app which i downloaded from app store then it works fine as browser is launched when i click on the login button
Similarly i have another app which imports contacts from Facebook when i download facebook app from app store and login there then my app doesn't import contacts and shows blank screen and when i uninstall the facebbok app then it starts working again.
Both apps works fine if Facebook app is not installed.
Any help regarding to this issue will be really appreciated.
After downloading my app from app store (or via OTA) and trying to share via FBConnect SDK, the mobile app is launched but returns almost immediately to the app with error -999, without asking user for authorizations.
After that, clicking on FB share button reopens the mobile app and all goes well, authorizations are asked, my app is called back and display the FB dialog.
That issue only happens once : if I uninstall/reinstall the app and remove the FBapp authorizations from my FB account, all goes well.
I already specified the BundleID/iTunes App ID in the "Native iOS App" menu, and use the last FacebookConnect SDK.
Anyone experienced the same issue ?
Problem:
I run the sample iOS SDK code for facebook connect. When Facebook app is not installed, the sample app authenticates through Safari just fine and the sample app is able to post successfully.
When native Facebook app is installed, the sample app causes the Facebook app to be launched for authentication which shows a page that is requesting login for the demo app. When I press the login, it brings up another window that has the allow/"don't allow" options. So far so good. The problem is that if I logout from within the sample app (i.e., [_facebook logout:self]) and try to login again, pressing the "login" button in the Facebook app does nothing (it's supposed to take you to the allow/"do not allow" page).
I have specified the App-ID in the sample app and I have included the fb[app-id] (e.g., fb1234) in the plist under 'URL Types' (otherwise, the Safari authentication would not have worked either).
Any help is appreciated.
It does not take you again to the "allow/don't allow" page because the user already gave permission to the app. The only way the page can show again is when the user revoke the access from the Facebook admin panel. I'm not sure if there's a part of the API that can actually revoke the access of the app from the iOS SDK.