Error SDK facebook and Unity3d 5

I’ve tried everything anyone has seen this error?

Clicking the invite: I get the message “App Request dialog is not implemented in the Unity editor.”

public void InviteFriends()
    {
        FB.AppRequest(
            message: "T...",
            title: "...."
            );
    }

Clicking share: “Share Link is not implemented in the Unity editor”

 public void ShareWithFriends()
    {
      //FB.Feed or
      FB.ShareLink (
            contentURL: "http://apps.facebook.com/" + FB.AppId + "/?challenge_brag=" + (FB.IsLoggedIn ? FB.UserId : "guest"),
            contentTitle: "...",
            contentDescription: "....",
            photoURL: ";....",
            callback: LogCallback
            );
    }
 
    void LogCallback(FBResult response) {
        Debug.Log(response.Text);
    }

more
http://forum.unity3d.com/threads/error-sdk-facebook-and-unity3d-5.344128/

img

Both FB.AppRequest and FB.ShareLink will not work in the Unity Editor, that is what these error messages are trying to convey.

You need to compile to one of the supported platforms for these methods to function as you expect.

Solution for Unity3d 5 And facebook sdk 7.0.2

first trade code

//GUI.ModalWindow(GetHashCode(), new Rect(windowLeft, windowTop, windowWidth, windowHeight), OnGUIDialog, "Unity Editor Facebook Login");
for
GUI.Window(GetHashCode(), new Rect(windowLeft, windowTop, windowWidth, windowHeight), OnGUIDialog, "Unity Editor Facebook Login");

in C:..\Assets\Facebook\Scripts\PlatformEditor\EditorFacebookAccessToken.cs

and “App Request” of
“Share Link is not implemented in the Unity editor”
“App Request dialog is not implemented in the Unity editor.”

just run the application simulating the cell