Check if the User follows particular blog

105 views
Skip to first unread message

mcarvalhor

unread,
May 8, 2012, 3:26:27 PM5/8/12
to tumbl...@googlegroups.com
Hello!!!
 
My intention is whether the user who is using my app that follows the blog determined...

Example:
<?php
include("userinfo.php");
if(if_user_follow("MYBLOG")){
echo "Welcome, thank you for following MYBLOG! I will follow back you!";
//user follow MYBLOG
}else{
echo "Welcome, if you liked my work, follow my blog, many othershave there!";
//user do not follow MYBLOG
}
?>



What I do is check if the user follows MYBLOG, if he follows MYBLOG, you will see a button "unfollow,", and if he does not follow MYBLOG, you will see the button "follow"...

Can anyone give me a hand?
=/

I thought load all the pages of '/user/following' and check all users loaded with 'foreach()', but this causes problems in the server tumblr, is not it?


Thank You, Matheus!

mcarvalhor

unread,
May 11, 2012, 6:27:30 PM5/11/12
to tumbl...@googlegroups.com
Anyone? =(

hostj2me

unread,
May 11, 2012, 8:24:49 PM5/11/12
to tumbl...@googlegroups.com
I do not think it is supported by the API at this time. In our application, we display both buttons and message detailing the success or failure of an operation. It is not elegant, but I am not aware of any alternatives.

On Friday, May 11, 2012 6:27:30 PM UTC-4, mcarvalhor wrote:
Anyone? =(
Reply all
Reply to author
Forward
0 new messages