1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Trying to tag facebook friends with php

Discussion in 'PHP' started by IamNed, Oct 3, 2012.

  1. #1
    If you post a status update or share a link on facebook there is an option to tag your friends as being 'with you'. It's not the same as tagging them with @ symbols.

    here is an example: http://www.facebook.com/karin.ohara.98/posts/111246132363889

    I'm trying to code this myself in php. It works for normal status updates. First I get the friend list and then try to add a 'with' parameter. Using chrome web developer tools didn't give much info as to how facebook does this. Doesn't work
            $with = array();
            for($i = 0; $i < 2; $i++)
                if($i < count($friends))
                    array_push($with, array("tag_uid" => $friends[$i]));
            $fields = array('name'          => $status['title'],
                            'message'       => $status['message'],
                            'caption'       => $status['caption'],
                            'with' => json_encode($with)),
                            'description'   => $status['desc'],
                            'link'          => $url,
                            'picture'       => $status['img']);
            $result = HTTP_POST("https://graph.facebook.com/" . $account->id . "/feed?access_token=$access_token",  // full URL to query

    IamNed, Oct 3, 2012 IP
  2. y8games2012

    y8games2012 Peon

    Likes Received:
    Best Answers:
    Trophy Points:
    ARE you send me full code into my inbox . i want to know about this php script
    y8games2012, Oct 3, 2012 IP