Code to add Facebook search to ur Welcome page

Discussion in 'FaceBook' started by Dr_And, Jun 23, 2011.

  1. Dr_And

    Dr_And Power Member

    Joined:
    May 28, 2011
    Messages:
    568
    Likes Received:
    58
    Location:
    My home :P
    Hello everyone

    This code to add the facebook search to ur welcome page

    The code
    PHP:
    <CENTER>
    <!-- 
    Search FB -->
    <
    FORM method=GET action="http://www.facebook.com/search">
    <
    TABLE bgcolor="#FFFFFF"><tr><td>
    <
    A HREF="http://www.facebook.com/">
    <
    IMG SRC="http://profile.ak.fbcdn.net/hprofile-ak-snc4/hs624.snc3/27535_20531316728_5553_q.jpg" border="0"
    ALT="Google" align="absmiddle"></A>
    <
    INPUT TYPE=text name=q size=31 maxlength=255 value="">
    <
    INPUT TYPE=hidden name=hl value=it>
    <
    INPUT type=submit name=btnG VALUE="Search In FaceBook">
    </
    td></tr></TABLE>
    </
    FORM>
    <!-- 
    Search FB -->
    </
    CENTER>

    Regards,
     
  2. RootShellvb

    RootShellvb Junior Member

    Joined:
    Jan 29, 2009
    Messages:
    188
    Likes Received:
    211
    Occupation:
    CEO
    Location:
    Casablanca, Morocco
    You can do this without redirecting the user to FB :)
    Create an FB application, call the URL in code with an access token, and you'll get the results in Json file ;)

    Code:
    https://graph.facebook.com/search?q=QUERY_STRING&type=user&access_token=ACCESS_TOKEN_HERE
     
  3. Dr_And

    Dr_And Power Member

    Joined:
    May 28, 2011
    Messages:
    568
    Likes Received:
    58
    Location:
    My home :P
    Thanks for the add ;)
     
  4. RootShellvb

    RootShellvb Junior Member

    Joined:
    Jan 29, 2009
    Messages:
    188
    Likes Received:
    211
    Occupation:
    CEO
    Location:
    Casablanca, Morocco
    ^_^ Anytime