2013-01-16 3 views
0

나는 FB API와 FQL을 사용하여 식별 된 사용자의 이벤트 코드를 얻고있었습니다.Facebook 이벤트 페이지 가져 오기

I go to mywebsite.com, and I login into Facebook. 
I get a list of all my current events, with a Link 
If I follow this link, I get the event ID (1234567, for example) 
[this step is the one I want to do]: 
I show in my website (like if it was an iframe) the following FB page: 
    https://www.facebook.com/events/1234567 

그래서, 그와 함께 난을 허용 할 : 예를 들어 여기에

하지만 페이스 북의 이벤트 페이지를 보여주고 싶은,하지만 난 그것을 할 수있는 방법을 찾을 수 없습니다 ... 사용자가 내 웹 사이트를 떠나지 않고 페이스 북과 직접 상호 작용할 수 있습니다 ...

어떻게해야합니까? 가능한가?

감사합니다.

+0

불가능합니다. Facebook에서는 자신의 웹 사이트를 프레임에 넣을 수 없습니다. – cpilko

답변

0

해결!

function viewFBActivity($id){ 
    $h = curl_init("https://www.facebook.com/events/".$id."/"); 
    curl_setopt($h, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); 
    curl_setopt($h, CURLOPT_HEADER, false); 
    curl_setopt($h, CURLOPT_HTTPHEADER, array("Accept-Language: es-es,en")); 
    curl_setopt($h, CURLOPT_SSL_VERIFYPEER, false); 
    curl_setopt($h, CURLOPT_SSL_VERIFYHOST, false); 
    curl_setopt($h, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); 
    curl_setopt($h, CURLOPT_RETURNTRANSFER, true); 
    curl_setopt($h, CURLOPT_AUTOREFERER, true); 
    $ret= curl_exec($h); 
    echo($ret); 
} 

앞으로 누군가를 돕기를 바랍니다.

관련 문제