iOS - sharing failure but only when Facebook iOS app not installed - iphone

I'm currently using the iOS Facebook SDK to share text, links and pictures but am seeing strange behavior when the user doesn't have the iOS Facebook app installed.
The post is failing with the dreaded "An error occurred. Please try later" message. However. the fact that it all works when the user has the FB iOS app installed on the device makes me think there must be some strange config issue here - has anyone else seen this?
The scenarios are as follows:
Facebook iOS app not installed - FAILS
User logs in to FB and the app pops up the embedded browser for
username/password - ok
User enters their username/password and is asked to authorise the app if necessary - ok
User tries to share some content - FAIL with "An error occurred.. Please try
later"
Facebook iOS app installed - SUCCESS
User logs in to FB via the app and credentials are pulled from the iOS FB app - ok
User is asked to authorise the app if necessary - ok
User tries to share some content - ok, works every time
Perhaps I'm missing something obvious but I don't see what could be causing the failure of the first of these scenarios when the second works just fine.
I've checked the obvious things e.g.
FB app isn't in Sandbox mode
app id is being passed to the server in the request to post content
app id is correct
There must be some sort of config setting I've missed - any thoughts?

Related

Ionic facebook login: getting this app is still in development mode While I set it in live mode

I am developing an ionic app. Used facebook login, I set my facebook app into live mode, my app is running as a charm on website, but on my android device it is giving the well known error (this app is still in development mode ...). I have no facebook data access except the default public data and email, which, as I know, do not need app review.
I have double checked app id, app secret from firebase. But I am wondering if it could be because of an error in the key hash.
I have 24 or more tabs opened on my chrome searchin for the same error, all of such cases have not set the app into live mode.
Any help is appreciated
The app is live.
I have checked every thing, and everything was correct, facebook app id in packages.json is the same as in the facebook console. (It was different and I have corrected it earlier).
I found the old facebook-app-id in the files platforms\android\android.json and platforms\android\app\src\main\res\values\facebookconnect.xml.
Changed it to the actual facebook app id.

Facebook Login: App not setup: this app is still in development mode

When I try to use Facebook login during development I have this message appear in the web browser.
First, I got added to the Facebook app. This could solve the problem but I was still seeing this message. What I came to find was that I had previously signed into a different Facebook on the simulator I was testing on. After going to Safari and logging into the account associated with the Facebook app everything worked as planned.

iOS Facebook Login Fast-App Switch Stays on Facebook App

I'll preface this by saying that this bug is difficult to reproduce and I have not been able to find a pattern for when it occurs.
When a user selects the Facebook login option in my iOS app, the app fast-switches to the Facebook app, and will stay in the Facebook app on the News Feed. Then when a user returns to my iOS app, and attempt to Facebook login again, it will fast-app switch and the login will continue as intended. When this bug occurs, it always fails, and then works reliably on the following attempt.
Make sure you have "fbXXXXXXXXXX:" in your plist
XXXXXX = you app id
When the app switches back it needs to know where to go, your app needs to respond to the url correctly.

iOS 6 the facebook server could not fulfill this access request invalid application

In some iPhone 5 devices we have an error when trying to call Facebook login:
The error is:
"the facebook server could not fulfill this access request invalid application id"
I many times checked that application id is specified correctly.
Strange, that on other devices same app is working correctly.
Please, could you help, what the reason of that?
All developers of a particular app, should be known to Facebook. While the application is in Sandbox mode (i.e. developer only access), all every user who want to use the Facebook platform, for testing/developing the application, will have to be added as a developer (as shown below) -
Just goto https://developers.facebook.com/apps/, and add the user, in the list of developers/admins.
More than likely the app is "sandboxed", so only developers have access. If this is the case you'll have to use a developer account on the iPhone.
Go to iOS settings > Facebook
Log out with your "personal" account
Log in with the developer account (to be safe us the dev account that you created the app with)
This worked for me.
I faced this problem. For me the issue was that I hadn't added the iOS platform for the app. Go to the Facebook developer page, then select your app. In the left nav bar go to settings. Then add platform. Ensure that your bundle identifier is correct. Then it should work.
If you have been testing with a sandbox facebook app and then receive this error when switching to the production app make sure you have published the app in the status & review tab.

Trigger.io Facebook.Authorize

I'm attempting Facebook Single Sign On with Trigger.IO and when testing with the IOS simulator the following happens:
Facebook Dialogue Opens
User Logs In
User Authorizes App
User clicks Okay to return to the native app.
At step 4 the following Safari notification is displayed and the app is never reloaded:
"Cannot Open Page"
"Safari Cannot Open the Page because the address is invalid"
As far as I can tell my APP ID is correct as the process would never make it to step 4 otherwise. My Facebook app is set up with the following details:
Native iOS App
SSO enabled.
No idea what I'm missing here but any help would be greatly appreciated! I've found answers to similar issues with native apps where the Facebook APP ID should be prepended with "fb", in the plist. But nothing related to trigger.IO
This was a regression in v1.4.10 that we fixed in v1.4.11 - if you've got:
"platform_version": "v1.4",
In your application configuration, you'll pick up the fix automatically.