0

我在我的网络应用程序中使用 Facebook 身份验证。

我有一个 URL 类型:https://www.facebook.com/dialog/oauth?client_id=123456789&redirect_uri=http://myapp.com/#story

It works really well but when the user is redirected to it, there's a query parameter that's added (for ex : http://myapp.com?code=AQCkHq--XXTngRCMgQxAAHExCaWzw5XYadd8vaVMytX91aPEc74oQWMBlyrr_HQUjBcC53sf_bREFz5cOBaFdgfvHSpWk1W0abbQA9ncbc0KQ0vyH6B1H37WXv1wcejblMQ6cTVLS98f4xvz-keiPgDJSh1v-Cyw-ACUFvAvs2yusHaSnfjITVZLDWQnNhBwpoELWFlJ75WAl0OrwD1_snZkQ2QQfL_5rcG2ZmpI9ORmFtFW-mrWEouA1zOiPSyTbP2d2LajGz82_KJuV5LBaFkULZ4mYSdALphPjvfwJkhrSQy7n_xKXGOfgr056bkqOIA#story;id= 219012 )

有没有办法从 URL 中删除那个长字符串?

4

1 回答 1

1

似乎当您添加 response_type=token 参数时,它就消失了。;-)

于 2013-07-02T19:40:03.500 回答