public void FeedAPI(LuviFacebookFeedAPI feed, ActionSuccessCallback callback = null) { Debug.Log("FeedAPI"); actionFeedAPICallback = callback; openFeed = feed; WWWForm form = new WWWForm(); form.AddField("link", openFeed.url); form.AddField("name", openFeed.header); form.AddField("caption", openFeed.caption); form.AddField("description", openFeed.description); form.AddField("picture", openFeed.picture); form.AddField("actions", "[{'name':'picture','link':'" + openFeed.picture + "'}]"); FB.API("/me/feed", HttpMethod.POST, FeedAPICallback, form); }
public void OpenFeedDialog(LuviFacebookFeedAPI feed, ActionSuccessCallback callback = null) { Debug.Log("Open Feed Dialog"); if (FB.IsInitialized && FB.IsLoggedIn) { actionFeedDialogCallback = callback; openFeed = feed; FB.Feed( link: openFeed.url, linkName: openFeed.header, linkCaption: openFeed.caption, linkDescription: openFeed.description, picture: openFeed.picture, callback: OpenFeedCallback ); } }