Hi,
I am trying to post Game Hiscore on Facebook. When I post Hiscore on my Facebook app developer id. It works but when I try to post on another Facebook Id. it doesn’t, it shows error
“An error occurred. Please try again later”
I am using this script
public class FBPost : MonoBehaviour {
private const string FACEBOOK_APP_ID = "758259544241078";
private const string FACEBOOK_URL = "https://www.facebook.com/dialog/feed";
private const string LINK = "https://www.facebook.com/";
private const string NAME = "I am playing Dart Shooter";
private string CAPTION = "";
private string DESCRIPTION = "";
private const string PICTURE = "";
private const string REDIRECT_URI = "https://www.facebook.com/";
private const string TWITTER_ADDRESS = "http://twitter.com/intent/tweet";
private const string TWEET_LANGUAGE = "en";
public void FacebookShare()
{
if(PreviewLabs.PlayerPrefs.HasKey("Hiscore"))
{
string hiscore = PreviewLabs.PlayerPrefs.GetInt ("Hiscore").ToString ();
DESCRIPTION = "MY HISCORE : " + hiscore;
}
Application.OpenURL (FACEBOOK_URL + "?app_id=" + FACEBOOK_APP_ID +
"&link=" + WWW.EscapeURL (LINK) +
"&name=" + WWW.EscapeURL (NAME) +
"&caption=" + WWW.EscapeURL (CAPTION) +
"&description=" + WWW.EscapeURL (DESCRIPTION) +
"&picture=" + WWW.EscapeURL (PICTURE) +
"&redirect_uri=" + WWW.EscapeURL (REDIRECT_URI));
}
Thanks in advance