[Error on Facebook Posting] mismatch between the bundle identifier and your app configuration on the server

Hi,

I’m trying to connect my iOS app with Facebook with a Mac Maverick, but I’m getting the following error:

 FBConditionalLog: System authorization failed:'The Facebook server could not fulfill this access request: remote_app_id does not match stored id '. This may be caused by a mismatch between the bundle identifier and your app configuration on the server at developers.facebook.com/apps.

I took a look at my bundle identifier on the iTunesConnection and my BundleId is: com.[appname]

And i provided the same value on Facebook App Settings.

I also certified that my appleID is right and also tried to use the sample app with appID and nothing is getting right.

Anyone knows how to solve this?

One of my doubts is that my bundleID just has 2 words com and appname and I tried a search in the web and every bundle name has at  3 words: com, companyname and appname. Is is a possible source of error?

Thanks!

When you create your provisioning profile on the Apple Provisioning portal, you create an App ID and generate the profile for that.

It should be something like com.yourcompanyname.yourappname.  For instance for my trivia game, its com.omnigeekmedia.omnitrivia.  This is what you tell Facebook your app is known as.

Then you have to build your app for your device using that provisioning profile that you generated and downloaded.  You cannot use the wildcard profile that many people test with.  You have to build with a profile that matches what you told facebook.

Rob

Right. Thanks for the answer!

My bundleID is connected to my distribution profile.

And I have 2 profiles: developer and distribution.

When I try to build my app using the distribtution profile and debug it on device with 

http://www.diawi.com/

ios shows a message that the app could not be installed and show 2 options (Done and Retry).

And when I use my developer profile, the app instals, but Facebook doesn’t run (question of the topic).

How can I solve this

You cannot installed a distribution for store built app directly on device.  There is a distribution via AdHoc that you can install on device.  I recommend using that profile.

Also, I’ve never used diawi.com before and I would recommend using XCode’s Organizer and using a tethered device while trying to troubleshoot this issue as it can give you quick access to the console log.

Rob

When you create your provisioning profile on the Apple Provisioning portal, you create an App ID and generate the profile for that.

It should be something like com.yourcompanyname.yourappname.  For instance for my trivia game, its com.omnigeekmedia.omnitrivia.  This is what you tell Facebook your app is known as.

Then you have to build your app for your device using that provisioning profile that you generated and downloaded.  You cannot use the wildcard profile that many people test with.  You have to build with a profile that matches what you told facebook.

Rob

Right. Thanks for the answer!

My bundleID is connected to my distribution profile.

And I have 2 profiles: developer and distribution.

When I try to build my app using the distribtution profile and debug it on device with 

http://www.diawi.com/

ios shows a message that the app could not be installed and show 2 options (Done and Retry).

And when I use my developer profile, the app instals, but Facebook doesn’t run (question of the topic).

How can I solve this

You cannot installed a distribution for store built app directly on device.  There is a distribution via AdHoc that you can install on device.  I recommend using that profile.

Also, I’ve never used diawi.com before and I would recommend using XCode’s Organizer and using a tethered device while trying to troubleshoot this issue as it can give you quick access to the console log.

Rob