Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

How to make user make a like action in facebook ? what is the OBJECT_ID to add to the requestWithGraphPath ?

$
0
0

In my app there is a label which once clicked should make the user making a 'like' action on facebook.

In this question there is the following piece of code supposed to make that action :

// Change OBJECT_ID to an actual object id
    Titanium.Facebook.requestWithGraphPath('OBJECT_ID/likes', {}, 'POST', function(e) {
        if (e.success) {
            alert('Success!  From FB: ' + e.result);
        } else {
            if (e.error) {
                alert(e.error);
            } else {
                alert('Unkown result');
            }
        }
    });
i have generated an url for the page to be liked from this page but i don't think this is the required 'OBJECT_ID' for that graph request.

What is the OBJECT_ID ?!


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>