kevinkhan Posted August 3, 2011 Share Posted August 3, 2011 when i go to a users profile when they are online i click view source and search for "is available" or "online" but none of these show up in the source code.. Any ideas on how to use a preg match function to check if a user is online on facebook?? [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/243686-code-i-need-to-look-for-to-see-if-a-user-is-logged-into-facebook/ Share on other sites More sharing options...
ram4nd Posted August 3, 2011 Share Posted August 3, 2011 can you, you have to be loged in to see that little bubble of yours. And you can do that with some php functions aswell. Preg match is probably slower. Quote Link to comment https://forums.phpfreaks.com/topic/243686-code-i-need-to-look-for-to-see-if-a-user-is-logged-into-facebook/#findComment-1251147 Share on other sites More sharing options...
Muddy_Funster Posted August 3, 2011 Share Posted August 3, 2011 I would think the best thing to do would be to get the facebook api and see what it offers. I would have to assume it's listed in the users personal details section (as opposed to the open profile pages), and whatever code you write will need express pemission from the facebook user to allow it access ~(otherwise it would be a serious security flaw). Quote Link to comment https://forums.phpfreaks.com/topic/243686-code-i-need-to-look-for-to-see-if-a-user-is-logged-into-facebook/#findComment-1251148 Share on other sites More sharing options...
kevinkhan Posted August 3, 2011 Author Share Posted August 3, 2011 can you, you have to be loged in to see that little bubble of yours. And you can do that with some php functions aswell. Preg match is probably slower. well the code that i have will be logged into facebook.. im just wondering what to look for in the source code of their page... Quote Link to comment https://forums.phpfreaks.com/topic/243686-code-i-need-to-look-for-to-see-if-a-user-is-logged-into-facebook/#findComment-1251161 Share on other sites More sharing options...
trq Posted August 3, 2011 Share Posted August 3, 2011 As Muddy_Funster just noted. Facebook have an API. Quote Link to comment https://forums.phpfreaks.com/topic/243686-code-i-need-to-look-for-to-see-if-a-user-is-logged-into-facebook/#findComment-1251261 Share on other sites More sharing options...
kevinkhan Posted August 3, 2011 Author Share Posted August 3, 2011 As Muddy_Funster just noted. Facebook have an API. can somebody tell me how i can use this API im not sure what APIs are Quote Link to comment https://forums.phpfreaks.com/topic/243686-code-i-need-to-look-for-to-see-if-a-user-is-logged-into-facebook/#findComment-1251355 Share on other sites More sharing options...
trq Posted August 3, 2011 Share Posted August 3, 2011 Facebook also has detailed documentation about this api. I'm at work so can't find a link for you (facebook blocked) but just search for facebook developers. Quote Link to comment https://forums.phpfreaks.com/topic/243686-code-i-need-to-look-for-to-see-if-a-user-is-logged-into-facebook/#findComment-1251519 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.