Search code examples
facebook-graph-apititaniumappcelerator

how to share text on facebook from thi iphone using Titanium?


I have implement one iPhone application using Titanium. Now I want to share application link or text on facebook I don't know which api I have to use and how to integrate.


Solution

  • Do you have any code yet you can share? Ti.Facebook changed in version 1.6 and uses the Graph API since then. There's a decent amount of documentation in the KS as well.

    You want to start by logging in to Facebook with the Graph API using the Ti.Facebook.createLoginButton and then Ti.Facebook.requestWithGraphPath for anything you would need. To share a dialog is probably best.