开发者

Javascript SDK Testing of FB.ui on localhost domain inconsistency issues

开发者 https://www.devze.com 2023-04-01 02:03 出处:网络
When I try to test on localhost sharing a link via FB.ui I get the following error: API Error Code: 191

When I try to test on localhost sharing a link via FB.ui I get the following error:

API Error Code: 191
API Error Description: The specified URL is not开发者_运维百科 owned by the application
Error Message: redirect_uri is not owned by the application.

This makes sense since in my app I set the site location. Is there any way to get this to work locally? Should i make another app which points to localhost?


That's usually the easiest way to do it. When we start a new project we generally create several apps: one for each developer's local testing, another for the staging/sandbox environment, and another for the live application.

You can also try to spoof the domain locally, though I haven't tried this method in long time.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号