getLoginStatus on arbitrary site?

My app is displays share buttons for various social media services. Sorta similar to ShareThis, if that helps. It is available for download and installation on customer's websites. I'd like to prominently feature the share buttons that the user is logged in to. For example, I want to show the FB share button at the top if they are logged in to FB. When I install my app on the same domain as my app's Site URL, a call to getLoginStatus works great. I can determine if the user has logged in regardless of whether they've given my app permissions. But when I install my app on a customer's site -- one that's not listed in my app's settings -- getLoginStatus returns this error: Given URL is not allowed by the Application configuration. One or more of the given URLs is not allowed by the Application configuration It must match one of the Connect or Canvas URLs or domain must be the same as or a subdomain of one of the Application's base domains. That's not really practical for me, since my app could be installed on thousands of domains, many of which I won't even be aware of. Is there any way around this? Can I get the user's login status even if I'm running my app on an arbitrary domain? Thanks a ton for any help you can provide...

以上就是getLoginStatus on arbitrary site?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准