FB.login with invalid redirect_uri

I am using flash GrahpAPI_web sdk, which is the as3 flash extension associated with the Javascript SDK.

Despite this, I try to open the oauth dialog as a popup, like a popup. When I run FB.init, followed by a call to FB.login, the resulting oauth url includes a redirect that I did not specify, and I cannot clearly see how to specify it.

Here is a friend view of oauth url

https://www.facebook.com/dialog/oauth
api_key=<APP_ID>
app_id=<APP_ID>
client_id=<APP_ID>
display=popup
domain=app.local.MYAPP.com
locale=en_US&origin=1
redirect_uri=http://static.ak.facebook.com/connect/xd_arbiter.php?version=8#cb=f35f1a383cdde0a
origin=http%3A%2F%=app.local.MYAPP.com%2Ff38af6b0241d006
domain==app.local.MYAPP.com
relation=opener
frame=fc22754c0e4d
response_type=token,signed_request 
scope=read_stream, publish_stream 
sdk=joey

The problem is redirect_uri, which I did not mention. If I replaced app.local.MYAPP.com, it works correctly.

How can I get FB.login to implement the correct redirect_uri?

+5
source share
2 answers

, -. , - . javascript:

window.location = encodeURI("https://www.facebook.com/dialog/oauth?
    client_id=<APP_ID>
    &redirect_uri=<REDIRECT_URL>
    &response_type=token
    &scope=publish_stream");
0

, oauth redirect uri ! https://developers.facebook.com/apps/ {appid}/fb-login/

0

All Articles