2017-10-11 66 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