Migrating FB open graph actions, objects and aggregations from dev to production app

荒凉一梦 提交于 2019-12-07 16:27:15

问题


Been hacking facebook open graph to publish items to a users stream, currently I have created all of the actions/objects/aggregations using a test app. I will however wish to

a) Migrate this to our staging server to test b) Once a) completed migrate this to the production server

Given each FB app has its own domain (and my staging/prod have their own domains) - I have a app for each environment. I would prefer not however to be re-creating the actions/objects/aggregations on both the staging and prod version of the apps. Does anyone know of a way of achieving this?


回答1:


Can you create subdomains of your main domain? If so, apps will work across multiple subdomains (this can be setup in your Developer Settings Dashboard). Alternatively, you can perform the main authentication and permissions step on your production domain and then redirect to your staging domain, using the same access tokens (most API calls aren't restricted to the app domain by default).



来源:https://stackoverflow.com/questions/9469482/migrating-fb-open-graph-actions-objects-and-aggregations-from-dev-to-production

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!