I’m trying to write a simple app for my website and struggling with 1 point.
A Facebook Page has;
$pageID = 'dorimedia';
What does a website have that is equal? I want to get the value to show how many times an external website has been ‘liked’.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Nothing.
You could use the domain name, or domain name + path as in full route, but no short ID per se.
ididIf you need something shorter, and not necessarily readable by you, you could hash it or apply some encrypting algorithm to the full url to get a shorter
id, try looking into themd5,sha1orhashmethods (assuming your using php)UPDATE
If what you need is how many facebook like’s a website has, there is an API for this directly from google that goes like this:
Which results in an xml response that includes, comments, likes and other interesting information. Google for instance has the following response:
Then its a matter of extracting the information from that XML, easily enough like this:
Click here for the Source