Facebook SDK Feed

I have created this script which will allow you post on your facebook wall. The only problem is it will only work in the unity editor itself and no other platform. So if someone could help me here to fix this error that would be great.

using UnityEngine;
using System;
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;


public class Feed : ConsoleBase {

#region FB.Init() example
	private bool isInit = false;
 
private void CallFBInit()
{
FB.Init(OnInitComplete, OnHideUnity);
}
 
private void OnInitComplete()
{
Debug.Log("FB.Init completed");
isInit = true;
}
 
private void OnHideUnity(bool isGameShown)
{
Debug.Log("Is game showing? " + isGameShown);
}
 
#endregion
#region FB.Login() example
 
private void CallFBLogin()
{
FB.Login("email,publish_actions,user_about_me", Callback);
}
 
 
public string FeedToId = "";
public string FeedLink = "";
public string FeedLinkName = "";
public string FeedLinkCaption = "";
public string FeedLinkDescription = "";
public string FeedPicture = "";
public string FeedMediaSource = "";
public string FeedActionName = "";
public string FeedActionLink = "";
public string FeedReference = "";
public bool IncludeFeedProperties = false;
private Dictionary<string, string[]> FeedProperties = new Dictionary<string, string[]>();
 
private void CallFBFeed()
{
Dictionary<string, string[]> feedProperties = null;
if (IncludeFeedProperties)
{
feedProperties = FeedProperties;
}
FB.Feed(
toId: FeedToId,
link: FeedLink,
linkName: FeedLinkName,
linkCaption: FeedLinkCaption,
linkDescription: FeedLinkDescription,
picture: FeedPicture,
mediaSource: FeedMediaSource,
actionName: FeedActionName,
actionLink: FeedActionLink,
reference: FeedReference,
properties: feedProperties,
callback: delegate(FBResult result) { consoleLog = "feed called"; }
);
}
 
#endregion
private string consoleLog;
void OnGUI()
{
GUI.Label(new Rect(0,0,Screen.width,70), consoleLog);
if(GUI.Button (new Rect(0,Screen.height-100,100,100), "Init"))
{
CallFBInit();
}
if(GUI.Button (new Rect(100,Screen.height-100,100,100), "Login"))
{
CallFBLogin();
}
if(GUI.Button (new Rect(200,Screen.height-100,100,100), "Feed"))
{
CallFBFeed();
}
}
void Callback(FBResult result)
{
consoleLog = result.Text;
}
}

if we consider from start.

first thing we do is create a Facebook app id and paste that id in unity.Now that much is fine when your using the editor but when we go for android ,we need to add the bundle id and hash key to fb app section so that it can communicate with android device with that reference. check that first if everything is fine at that end then plz add comment