Ios Facebook login: com.facebook.sdk: ErrorLoginFailedReason = invalid_client

I tested my FB application with my iOS application for quite some time, using only the sandbox application and my administrator account; It worked fine.

Now I have disabled sandbox mode in my fb application so that some of my FB friends will test the application.

Whenever they try to connect from the iPhone application, they get the following screen:

"myApp is not configured to log in to Facebook"

and error: com.facebook.sdk: ErrorLoginFailedReason = invalid_client (error 2)

cannot find any information about this anywhere.

Also (I don’t know if this matters), I don’t use the native Facebook application on my iPhone (so I can log in via Safari), while my friends (and receive an error message from the native Facebook application).

+7
source share
1 answer

Since Bruce answered his question in the comments, I would provide it in a real answer.

The Facebook app bundle identifier must be exactly the same as the iOS app bundle identifier. If you recently changed your package ID or the event of your target name (by default, product name set to $(TARGET_NAME) and bundle ID is ${PRODUCT_NAME} ), this may cause your problem.
Be careful because the package identifier is case sensitive!

Finally, it can also be the Facebook namespace application settings field. My client filled it with the name of the application, and it was a mistake. Leaving it empty, I solved the problem.

+3
source

All Articles