03-02-2013 06:00 AM
I want to know wether the user has shared the message succesfully or cancelled on facebook, twitter postwall screen.
Any one have any idea, please share with me.
03-02-2013 10:04 AM
Are you just curious to know if your code is working? or are you trying to verify the post succeeded in order to "unlock" an achievement in a game? e.g. if you post something on twitter/facebook you get "25 coins" in the game?
Or is it similar to the latter.. but you aren't actually triggering the messages being sent to Twitter/Facebook and you want to use their API's to look and see if the user has posted something?
03-02-2013 10:18 AM
03-02-2013 10:35 AM
There's a few options depending how deeply you want to get into this.
at a very basic level you can use these 2 URL formats (1 each for Twitter/Facebook) to get a count of Shares/Likes.
URL Format: http://graph.facebook.com/ + yourSpecificPage
URL Format http://urls.api.twitter.com/1/urls/count.json?url= + your SpecificPage
Both return in JSON format the counts... and in some cases additional data.
If you generate a unique key for your URL... before the user shares it... you can then check later if that count is 0 or more... if it is 1 or more, the user has shared/liked that link.
03-04-2013 04:36 AM
Here you suggested that for facebook,
URL Format: http://graph.facebook.com/ + yourSpecificPage.
This is my original scenario,
1) In my app any user can login through facebook or twitter using their IDs, I need to capture the username(or) email which they are logged in.
For this I want to get the user twitter and facebook details which the user setup in the device.
Here my problem is I am unable to get those details.
I don't have any "specificpage" for my application.
2) Any user can like/share some things in my app, so that the user can get some points to redeem gifts.
Here like/share can happen in user's social page(like facebook wall, twitter).
I don't have any specific page for all users.
I need to hit some service when he succesfully liked/shared.
Any help will be appreciated.
Thanks in Advance.
03-04-2013 06:11 AM