$APPID, 'type' => 'client_cred', 'client_secret' => $APPSECRET, 'code' => ''))); $obj = json_decode($token); $token = $obj->{'access_token'}; //Facebook-Session starten FacebookSession::setDefaultApplication($APPID, $APPSECRET); $session = new FacebookSession($token); $LIMIT = 5; $request = new FacebookRequest($session, 'GET', '/233423080166385/posts?fields=id,created_time,updated_time,type,status_type,message,link,picture,description,name,story,source&limit='.$LIMIT); $response = $request->execute(); $graphObject = $response->getGraphObject(); $result = $graphObject->asArray(); $posts = array(); for($i=0;$iid, $result['data'][$i]->created_time, $result['data'][$i]->updated_time, $result['data'][$i]->type, $result['data'][$i]->status_type); if(property_exists($result['data'][$i], 'message')){ $posts[$i]->set_message($result['data'][$i]->message); } if(property_exists($result['data'][$i], 'link')){ $posts[$i]->set_link($result['data'][$i]->link); } if(property_exists($result['data'][$i], 'picture')){ $posts[$i]->set_picture($result['data'][$i]->picture); } if(property_exists($result['data'][$i], 'description')){ $posts[$i]->set_description($result['data'][$i]->description); } if(property_exists($result['data'][$i], 'name')){ $posts[$i]->set_name($result['data'][$i]->name); } if(property_exists($result['data'][$i], 'story')){ $posts[$i]->set_story($result['data'][$i]->story); } if(property_exists($result['data'][$i], 'source')){ $posts[$i]->set_source($result['data'][$i]->source); } } ?> SpVgg Hüddessum/Machtsum von 1920 e.V.
get_post(); } ?>