- Home /
facebook sharing Dialog via prime31 plugin
hi, i am using prime31 social plugin for iOS. but not able to get (identical Facebook sharing Dialog Box). my application making posts on FB , but my client want Dialog box, how could i get it. here is some code which i Picked up from sample project
if( FacebookBinding.canUserUseFacebookComposer() )
{
// ios 6 Devices having this Dialog
// ensure the image exists before attempting to add it!
if( !System.IO.File.Exists( filename ) )
filename = null;
FacebookBinding.showFacebookComposer( "i have captured a image : " + Time.deltaTime, filename, "" );
}
else
{
// Non ios 6 Devices
Debug.Log("Execution OF Posting 333333 At Non ios 6 Device");
Facebook.instance.postImage( bytes, "i have captured a image ", CompletionHandler );
}
i have set Deployment Target to iOS 6.0 as well. Please Help :)
Answer by psyydack · Sep 19, 2014 at 03:30 AM
From documentation:
var parameters = new Dictionary<string,string>
{
{ "link", "http://prime31.com" },
{ "name", "link name goes here" },
{ "picture", "http://prime31.com/assets/images/prime31logo.png" },
{ "caption", "the caption for the image is here" }
};
FacebookBinding.showDialog( "stream.publish", parameters );
Your answer
Follow this Question
Related Questions
Allowing users to post to their FB walls from within a Unity app 0 Answers
I cannot log into Facebook when logged in via the settings screen of iOS 0 Answers
API for posting to all social networks for all platforms 2 Answers
Facebook Unity SDK - iOS Login not persisting 1 Answer
I can see/send invites to non-app user friends on canvas app but not on android/ios 0 Answers