Hi.
I have tried to make a FB like button to like statuses from my page.
This is what i have and i get success message but no like is recorded on FB.
What have i missed?
var like = Ti.UI.createImageView({ width : 75, top : 270, image : 'images/check.png', zIndex : 10 }); win.add(like); like.addEventListener('click', function(e) { Titanium.Facebook.appid = "1234567890"; Titanium.Facebook.permissions = ['publish_stream', 'read_stream', "user_checkins", "publish_checkins"]; var dict = { access_token : Titanium.Facebook.getAccessToken() } Titanium.Facebook.requestWithGraphPath(+win.id+'/likes', dict, 'POST', function(e) { if(e.success) { alert('Success! From FB: '); } else { if(e.error) { alert(e.error); } else { alert('Unkown result'); } } }); });
Your Answer
Think you can help? Login to answer this question!