2017-10-11 72 views
1

我尝试使用graph-facebook-api发布任何来自asp.net网站的消息。我创建了开发者应用程序,并且还使用了appidappsecret,我在应用程序域中添加了我的网站url [localhost]。当运行该站点时返回以下消息图facebook api authentication

{ 
    "error": { 
     "message": "Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings.", 
     "type": "OAuthException", 
     "code": 191, 
     "fbtrace_id": "Aq+jSX8OjVZ" 
    } 
} 

enter image description here

enter image description here

+0

您需要将运行应用程序的域添加到[developer.facebook.com](https:// https://developer.facebook.com)中的设置。 – VDWWD

+0

我在创建应用时已添加。 –

+0

你可以在你要求fb的地方分享你的代码吗? –

回答

0

我解决它通过将所有重定向的Facebook登录产品设置子域,如屏幕拍摄: enter image description here