ThisisLegal.com

ThisisLegal Forums

Welcome to the forums! A chance for site members to chat and get help.

You are not logged in.

#1 2011-04-13 03:47:27

reqDy
Member
Registered: 2011-04-07
Posts: 5

Facebook cookie c_user

Hey dudes .

I try to write a web bug who reads the cookie c_user.
The cookie c_user contains the FaceBook user ID.


hmm i tryed :

<?php

$FaceBookID=$_COOKIE["c_user"];
// and i tryed: $FaceBookID=$HTTP_COOKIE_VARS["c_user"];

echo "your ID is:".$FacebookID;
?>

now the big BUT:

it doesnt work , the issue is: " "

wow , where is the logic fault ? smile

Offline

#2 2012-06-24 06:28:59

chris_burnham
Member
Registered: 2012-06-24
Posts: 1

Re: Facebook cookie c_user

You can only read cookies that belong to the website that you are on.

For example, if you go to "thisislegal.com" your browser will only send the cookies that relate to that. To get someones facebook cookie, you'd have to run that PHP code on Facebook's website.

It's a security thing. It prevents websites from messing with each other or from people doing what you are trying to do.

Offline

Board footer

Powered by FluxBB