dongshen9058 2012-10-26 21:36
浏览 37

Facebook PHP SDK:如何在登录时重定向到其他页面? [重复]

Possible Duplicate:
how to set facebook return url

I am currently trying to use the official PHP SDK for Facebook. Is there any way to configure it so that Facebook redirects back to a different URL once the user has logged in/accepted the app in facebook?

I've looked around the web and the SDK reference but I can't find the answer to this anywhere.

  • 写回答

2条回答 默认 最新

  • dongxian1921 2012-10-26 21:44
    关注

    Look at the getLoginUrl() function in the PHP sdk, it allows you to set the redirect_uri parameter passed to the Login process - this can be any URL owned by your app, though that URL needs to be ready to accept the code and exchange it for an access_token to complete the login flow

    You can obviously just redirect them after the login completes also, but i assume you're talking about the URL they're brought to as part of the flow

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度