2014-10-28 86 views
0

我想通過Facebook畫布訪問我的應用程序。所以我設置了許多教程中的設置配置。如何配置我的Facebook應用程序的設置?

  • 帆布URL
  • 安全畫布URL
  • 網站URL

都一樣https://mysite.com/還設置Namesapace(myapp_canvas),顯示名稱(mayapp名)和應用程序域(mysite的)。

當我試圖通過帆布進入應用程序(https://apps.facebook.com/myapp_canvas)我得到以下錯誤:

Given URL is not permitted by the application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

如何解決這個問題?

回答

0

通常會發生此錯誤,因爲請求域不匹配mysite.com

如果您正在開發中,請嘗試編輯/etc/hosts(或C:\Windows\System32\Drivers\etc\hosts(如果在Windows上))文件以擁有此行。

127.0.0.1 local.mysite.com 

如果你是遠程發出請求的Facebook,確保域與mysite.com結束;恩。 app.mysite.com,dev.mysite.com

相關問題