- Home /
This post has been wikified, any user with enough reputation can edit it.
U3DXT Social FacebookPost not Working?
public void PostOnFaceBook()
{
if (CoreXT.IsDevice) {
Application.CaptureScreenshot ("ScreenShot.png");
UIImage tmp = new UIImage (Application.persistentDataPath + "/ScreenShot.png");
// share
if(_stringPostOnWtitterAndFaceBook == "")
{
_stringPostOnWtitterAndFaceBook = "Post !";
}
if(_link == "")
{
_link = "http://abc.com";
}
if(tmp.IsNil)
{
SocialXT.Post (SLRequest.SLServiceTypeFacebook, _stringPostOnWtitterAndFaceBook, GameObject.Find("Logo").GetComponent<GUITexture>().texture as Texture2D, _link, true);
}else
{
SocialXT.Post (SLRequest.SLServiceTypeFacebook, _stringPostOnWtitterAndFaceBook, tmp, _link, true);
System.IO.File.Delete (Application.persistentDataPath + "/ScreenShot.png");
}
}
}
GameObject.Find("Logo").GetComponent().texture is not null. I'm call thist method from other GameObject. But It not working !. . .
Comment
Any more detail you can give other than "not working?" Like the actual error log reference in the Xcode debugger would be helpful.
Sound notice post is complete, but message not show in my timeline
Your answer
Follow this Question
Related Questions
Allowing users to post to their FB walls from within a Unity app 0 Answers
social network & share function 4 Answers
Xcode hook up with Unity 1 Answer
U3DXT Game Crashes when calling SocialXT.Share 1 Answer
Simple facebook post 1 Answer