发布到使用一个应用程序ID不同的网站的Facebook [英] Publishing to facebook from different websites using one APP ID

查看:251
本文介绍了发布到使用一个应用程序ID不同的网站的Facebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立我的客户定制的CM​​S和我已经实现了Facebook的API上页张贴墙作为管理员。一切运作良好,但我有一个问题。比方说,FB的应用程序名称是'CMS FB APP。

I'm building a custom CMS for my clients and i've implemented the Facebook API for posting on Page Walls as admin. All works well but I do have one question. Let's say the FB app name is 'CMS FB APP'.

CMS将驻留在我的客户的服务器上,是有可能使用FB CMS APP为我所有的客户?还是我来为每个CMS,我每个不同的服务器上安装的应用程序?

The CMS will reside on my clients' servers, is it possible to use 'CMS FB APP' for all of my clients? Or do I have to create an application for each CMS that I install on every different server?

在应用程序设置,我必须设置站点URL和域名网站,但这是为每个客户端不同,我似乎没有找到这个问题的解决方案。

In the app settings I have to set a Site URL and Site Domain but this is for each client different, I don't seem to find a solution for this problem.

推荐答案

如果您使用的身份验证,则必须创建一个单独的应用程序因为你的应用程序将被托管的每个URL。当用户试图与Facebook登录,您将收到一个错误。 Facebook的要求,在认证回复的网址你的'下一个'和'取消'的网址在同一个域中的应用程序的网站URL。一个解决办法是设置一个基本URL,如example.com一个应用程序,并有每个客户端上自己的子域名就像client1.example.com,client2.example.com等短,你是坚持做独立的程序

If you are using authentication, you have to create a separate app for each url where your app will be hosted. You will receive an error when the user tries to log in with facebook. Facebook requires that your 'next' and 'cancel' urls in the authentication return urls be on the same domain as your app's Site Url. One solution would be to setup an app with a base url such as example.com and have each client on their own subdomain like client1.example.com, client2.example.com, etc. Short of that, you are stuck making separate apps.

这篇关于发布到使用一个应用程序ID不同的网站的Facebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆