I want to develop an application for stumbleupon and I need to check if somebody follow another person on StumbleUpon. For example, user X follow user Y, user X need to press an button to confirm and I want to check with php, if user X followed user Y. If user X follow User Y, continue. Somebody know h开发者_运维知识库ow can I do that?
create a function that goes like this:
function followed($follower,$followed){
$response = @file_get_contents('http://www.stumbleupon.com/stumbler/'.$follower.'/following/');
return (strpos($response,'/stumbler/'.$followed.'/') !== false);
}
it will return if the user already followed your target stumbler
Hope this helps.
精彩评论