I developed an app and integrated Facebook plugin. Its working fine I am able to share things through my app. I have created few test users and mentioned their access token in my app so that I can use them for testing purpose. But my question is when my app go live what access token should I mention in my app? Do I have to use App Secret Code as my access token? If yes! Does it allow all the live users to share the stuff of my app on their wall?
local appId = "myAppID" local message = "" local access\_token = "????????" local fbCommand = ""
You get the token from a successful call to the .login() method. You should not be hard-coding tokens. You have no guarantee how long FB will keep one live.
Because of this, FB can only reasonably be tested on device.
My suggestion is to look at the Facebook sample app that ships with Corona in Corona/SampleCode/Networking/Facebook and study how that works.
Users of your app will be able to post to their own timeline as long as they have agreed to the “publish_actions” permission and you have successfully submitted your app to Facebook and go through their approval process. While testing they let you use “publish_actions”, but for live users to use it it will need to be approved.
You get the token from a successful call to the .login() method. You should not be hard-coding tokens. You have no guarantee how long FB will keep one live.
Because of this, FB can only reasonably be tested on device.
My suggestion is to look at the Facebook sample app that ships with Corona in Corona/SampleCode/Networking/Facebook and study how that works.
Users of your app will be able to post to their own timeline as long as they have agreed to the “publish_actions” permission and you have successfully submitted your app to Facebook and go through their approval process. While testing they let you use “publish_actions”, but for live users to use it it will need to be approved.