FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


How to save facebook user IDs?





gandalfthegrey
Hey everyone,

I am trying to fix a website to save the facebook user ID is someone is linked to the website from facebook.

Does anyone know how that can be done?
shamil
sorry, can you clearly write what u want
badai
if you type anything link to anything, facebook will convert it to image.
Raidation
oh, that's easy. You just save the "id=xxxxxxxxxxxxxxx" part.
Aredon
I can't say I fully understand what you're asking for?
Agent ME
When a link is clicked, the URL of the referring page is passed in the request for the new page, which might be useful. I think PHP shows this in the $_SERVER['HTTP_REFERER'] variable.

It won't tell you the id of who clicked it, but if the user was viewing the page of a person who posted the link, you might be able to get the poster's name or id from the referrer address.
gandalfthegrey
I would like to:

When someone is logged into facebook and clicks a link to my website via facebook, I would like to be able to save their facebook user ID when my website loads.
badai
u can't. first, as i said before, any link with protocol like http, ftp, irc, mailto, etc will be converted to image and not clickable. and if you post too many of them, your account will automatically be suspended.

and for those shared link, facebook will convert it to www.facebook.com/l.php?sometag=somevalue

l.php is a redirector that will scrap everything in referrer and you will only see it's coming from www.facebook.com/l.php

there is no way in hell facebook will expose anything about their user to other sites.
Related topics
Warn Moderator
a few email/parked domain questions..
Can't he use those files?
Hello. I'm a generic Frihost Bot.
What's New in Pocket Internet Explorer
Best Web-Based Instant Messaging Client
Billy the Monkey- BM Homepage, what do you think?
What do you prefer? Myspace or Facebook?
Trendnet Wireless USB adapter
Funny comments by Facebook noobs!
Simple PHP Login Script
Javascript equivalent of F11
Facebook profile viewing
Unfriend in Facebook...!
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.