是的,得到191錯誤。 我研究後發現這個問題是有幫助的: Facebook API error 191API錯誤代碼:191
我的URL看起來像:
https://www.facebook.com/dialog/oauth?client_id= &redirect_uri=http%3a%2f%2flocalhost%2fFb.201109Birthday%2fOAuth2.aspx
但是,我得到一個錯誤:
API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.
我讀過無處不在網址必須與應用程序設置頁面中列出的內容相匹配。我有
- 應用程序域=本地主機
- 帆布URL = http://localhost/Fb.201109Birthday/Birthday.aspx?
- Secure Canvas網址= http://localhost/Fb.201109Birthday/Birthday.aspx?
我也嘗試了local.facebook-apps.com(用local.facebook-apps.com替換上面的「localhost」,主機文件條目指向127.0.0.1)。但是,所有這些場景仍然會顯示191.從Canvas URL中刪除Birthday.aspx。
[Facebook的API錯誤的可能重複191](http://stackoverflow.com/questions/4691782/facebook-api-error-191) – genesis