Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook URL Scheme Suffix issues [duplicate]

I have 2 applications that are using same Facebook App Id. I am trying to use URL suffixes, and I have some issues.

I followed this tutorial but with no luck...

  1. I created suffixes on Facebook application page (I have "developer" role, not "administrator", but it allowed me to set suffixes)
  2. I added suffix to iOS app .plist - fb123456789suffix
  3. Suffix contains only small letters

As the result (using FBSDKLoginManager for login) I am getting FB opened in Safari, I can accept login request and then "Cannot open page" message.

When I enter "fb123456789suffix://" in Safari it launches my app

When I enter "fb123456789://" in Safari there is "cannot open page" message.

It looks like FB didn't update suffixes in application page, because if I will enter url in .plist without suffix (fb123456789) everything works.

Do you have any ideas or suggestions why this is not working?

PS. I am using latest FB SDK in iOS application.

EDIT: this is not duplicate. It was different issue, I was missing FacebookUrlSchemeSuffix parameter in .plist file,

like image 887
Piotr Avatar asked May 22 '15 13:05

Piotr


1 Answers

Ok, seems to be solved.

I needed to add additional parameter in .plist: FacebookUrlSchemeSuffix with suffix value. URL Scheme should be fb123456789suffix and FacebookAppID: 123456789.

like image 145
Piotr Avatar answered Sep 24 '22 07:09

Piotr