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
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?
source
share