Opening iOS deep links from Facebook webpage stopped working

Suddenly, deep links to my application stopped working from the Facebook web view, but they work fine when I open the deep link in Safari (or click on the shared view in the web view and select Safari).

I added all the necessary open tags for my resource and application links, as indicated here: https://developers.facebook.com/docs/applinks/add-to-content

Has anyone experienced the same behavior after updating a new Facebook app? Version: (34.0.0.36.265)

I get the usual invitation if I want to leave Facebook, but after clicking nothing happens, and the device remains in the Facebook web view. I checked the scraper information at https://developers.facebook.com/tools/debug/og/object/ , but no error messages were reported.

Here is the URL / resource that gets shared and redirects it to a deep link (the server may need to wake up): https://www.qonnect-it.com/mexx p>

Any ideas?

+7
ios facebook deep-linking applinks
source share
3 answers

I have the same problem with the last update of Facebook applications, it seems that something is on their end, and not on your application (or even mine).

I suggest going to https://www.facebook.com/help/186570224871049 and reporting a problem so that we can quickly escalate this problem.

+12
source share

Glad .. we found that this defect is registered. It took several days of my fruitful work. Now there is something strange that we noticed that although nothing happens even after the β€œOpen App” is selected, try moving the web view while holding the lil bit header, and for your surprise, then a deep link works. Funny and interesting. Let me know if anyone else experiences this.

+3
source share

If you are looking for a possible workaround until it is fixed, use the facebook hosting API. It seems that clicking on links created with it is not currently being transmitted by the iOS facebook buggy in the browser application and therefore works.

Here is a quick walkthrough (adapted documentation ):

  • Create a new facebook application (or use an existing one).
  • Request an access token for the application: curl "https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials"
  • Create an application link by filling in the data that you usually define in your meta tags in the page header:

     curl https://graph.facebook.com/app/app_link_hosts \ -F access_token="TOKEN_FROM_STEP_2" \ -F name="YOUR_APP_NAME" \ -F ios=' [ { "url" : "your://deep/link", "app_store_id" : YOUR_APP_STORE_APP_ID, "app_name" : "YOUR_APP_NAME", }, ]' \ -F android=' [ { "url" : "your://deep/link", "package" : "your.package.name", "app_name" : "YOUR_APP_NAME" }, ]' \ -F web=' { "should_fallback" : false, }' 
  • Use the return identifier {"id":"somethingsomething"} to request your canonical URLs:

     curl -G https://graph.facebook.com/ID_FROM_STEP_3 \ -d access_token="TOKEN_FROM_STEP_2" \ -d fields=canonical_url \ -d pretty=true 
  • Use the returned canonical URL https://fb.me/ID directly for deep linking instead of linking to your regular page.

+1
source share

All Articles