Facebook iOS app sometimes not switching back to my app after authorization - facebook

I'm creating an app that has facebook integration to post images to a user's wall.
I'm using the prime31 unity plugin called 'Social Networking'.
Here's my issue: on a fresh run (having no previous authorizations on Facebook and having uninstalled the app on the device to make sure there is no cached data), I'll login to facebook with "email" as the only permission. The device then switches from my app to the facebook app to ask the user for permission. I hit the 'log in' button, then MOST of the time I'll just end up switching to my news feed in facebook without ever switching back to my app. Sometimes after switching to the facebook app instead of the permission screen I'll end up on a blank page with 'cancel' as the only button up top, and pressing 'cancel' does nothing (I'm stuck on that blank page). And sometimes I'll authorize and correctly switch back to my app.
EDIT:
Well this feels pointless, but I discovered the source of the problem so I thought I would share in case anyone else runs into this.
My problem was that when I was building from Unity, I was usually hitting cmd-B (or build/append). This overwrites the info.plist file, removing the URL injection that the prime31 plugin does for the app switch.
Going into the build settings menu, hitting 'build and run', and pressing 'replace' will run the code that inserts the URL into info.plist.

Related

Facebook App Linking from pages not working anymore

It's been about 2 months now. We manage several facebook pages and all these pages were linking to native iOS / Android apps from the CTA button where users were either opening their apps via "Use App" link or were redirected to download them in case they didn't have it installed.
What happens now is that the dialog to connect your app via the "add button" function in Facebook pages, it only shows a textfield to redirect the users to a website (image attached). There is no way to link to a registered app (of course there is a related app registered with all the relevant platforms enabled and the admin has access to it). Facebook, as always is completely silent and not responding to any support requests, clients that had their apps linked to pages now ask us what happened and we are out in the cold without being able to understand wtf is happening.
This happens to 90% of our pages, some of them still have a "Use App" button that works just fine, but all others have the above problem. Also, new pages, suffer from the same problem as well. Changing the page theme doesn't seem to do anything. One (strange) finding is that if you download the pages management app in a mobile device, there is also a checkbox which allows to enter a deep link url besides the standard url but just that. The list with the apps that we had access to link to pages has just vanished.
Any ideas? Anyone having the same issue?

IE stuck at permissions request

I have a desktop app that was previously working. I call the FB app with: https://www.facebook.com/dialog/oauth?client_id=401292276603778&redirect_uri=https%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html&scope=manage_pages%2Cpublish_stream%2Cphoto_upload&response_type=token&display=popup
Recently, this has been getting stuck in IE at the permissions request page. No matter how many times I hit the "allow" button, it stays on the permissions request page. It doesn't get stuck in Firefox or Chrome. But since the desktop app uses an embedded IE browser, I'm now stuck. There's been no code changes on my end and I estimate the problem arose over the last week.
We're experiencing the same issue here.
It appears to be across any site - we've tried on Vimeo.com as well as our own and we can replicate the issue on each site.
The steps we're taking to see the issue are as follows:
Ensure you have a Facebook account that has never been used on the
site before
Ensure you are not logged into that Facebook account
Visit the website, click the Facebook login button
You’ll go to Facebook, log in
It’ll then show you a permissions screen with a button to Goto App
Clicking that button just results in an infinite loop where the page reloads and you see the same thing again
The issue can even be replicated on Facebook's own page on the developer site - http://developers.facebook.com/docs/reference/plugins/login/

Unable to create a Facebook App in App Dashboard

Ok, so I'm using my personal Facebook account, that has a verified cell phone number. I can get to the App Dashboard page, and can click the "+Create a New App" button. I complete the dialog using a name that get's green lit, and click the submit button.
I wait for a few seconds and I'm dumped back to the main App Dashboard page - no new App exists.
This is a personal account and not a company account.
Still stuck on this problem - any chance I could get a FB Dev Support help with this?
I had the same problem and finally got this working. Curiously, visiting the Facebook Developer App page https://facebook.com/developers?ref=ts&fref=ts using IE and going to the app fixed the problem. Using Firefox resulted in an infinite redirect. All of the apps I created but couldn't see started showing up.
Maybe your account is too new. But usually you get an notice.

Facebook notification from my app appears and disappears

I have a problem since a several days now. Facebook notifications from my app (the red number one) appears and disappears. This functioning properly at first, but then but then stopped working.
I tried by entering in the Website url -> http://mipagina.com, in the canvas url -> http://mipagina.com/ and the secure url https.... I tried many other ways but nothing. I realized that the app request don't send a notification to the user for his acceptance. But I can add the app from the app page. If the user add the app the red number one appears and then disappears but the notification from my app shows in the facebook notifications page. But if the user doesn't add the app, the red number one appears and then disappears and then the notification doesn't appear in the facebook notifications page.
Hope you can help me...Please sorry for my english.
Since "user-to-user requests are only available in canvas apps" (see here), you must make sure your canvas app is properly set up.
Review that you have done ALL of the following steps:
Set Sandbox Mode to off
Selected a Namespace for your app
Enabled App on Facebook (which is the canvas app settings)
Filled out Canvas URL and Secure Canvas URL
Facebook will not notify you in its Javascript API about these issues: there it will seem like the app request notification has indeed successfully been delivered.

Is there a way to disable the "Please log in to continue" message in a Facebook Canvas app?

when you visit a Facebook Canvas app (such as http://apps.facebook.com/branchout/) and you are not logged in to Facebook, you will get the "Please log in to continue." dialog every 10 seconds or so.
I am planning to develop a Facebook Canvas app that does not ask for user authentication/ app authorization upfront (I don't want to scare users away), but I do not want to go that way if I cannot stop that dialog.
Is there any way to disable it, or should I rather ask for authentication/ authorization upfront? Thank you for sharing your experience.
Brent is right, it's just a bug. The what's-going-on pane on the right hand side tries to reload, and gets confused when there's no user logged in. Don't worry about it, it should be gone soon :-)
I'm pretty sure that is Facebook trying to refresh their ads. I've done a few apps that don't require authentication or login until specific actions are performed. If you are not logged into Facebook, then that prompt comes up. The only action I am performing is calling getLoginStatus on load. Unfortunately, it doesn't seem like there is any way around it. When I load my app directly (not in a Facebook iframe), the prompt doesn't come up.