Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  11] [ 3]  / answers: 1 / hits: 25141  / 14 Years ago, tue, march 8, 2011, 12:00:00

This question is not a duplicate of this one.



I don't want to know whether the user has authorized my application, but if the user is logged into facebook (completely independed from my application).



The reason is that I want to pring user comments in my html code so that search engines can index them.



When a user is logged into facebook I want to replace the html code with the facebook comments snippet.



If not an alternative old school comment form should be displayed.



I would pull the comments regularely from the graph api to have them in my database and comments that are done using the classic form should be posted over the api (not necessarily as the user, could be an admin account...) to have all the data synchronized.



I looked at the Javascript SDK Docs, also found the function getloginstatus but the documentations are bad and not conclusive. I know that there are also often features available at facebook codes that are not documented or implemented in higher level apis.



My questions are:




  • Can I somehow find out if a user is logged into facebook?


  • Can I somehow have a callback or notification of posted comments, so I can trigger synchronization to my database or do I have to crawl the graph api on a regular basis?



More From » facebook

 Answers
10

This article



https://grepular.com/Abusing_HTTP_Status_Codes_to_Expose_Private_Information



identifies security risks in Google and Facebook that will allow you to determine if a user is logged in. While no official API exists to check if a user is logged in without that user giving you express permission to access this information, the above article shows how you can 'guess' if a user is logged in or not.



Note: The article identifies a 'hack' and so is not guaranteed to work in the future, if or when Google & Facebook identify these security risks.


[#93377] Sunday, March 6, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tristani

Total Points: 318
Total Questions: 95
Total Answers: 106

Location: Saint Lucia
Member since Wed, Feb 8, 2023
1 Year ago
;