Results 1 to 2 of 2

Thread: Facebook Like Wall Posts - Database help

  1. #1

    Thread Starter
    PowerPoster Nitesh's Avatar
    Join Date
    Mar 2007
    Location
    Death Valley
    Posts
    2,556

    Facebook Like Wall Posts - Database help

    hi guys,

    I'm building a small app which copies facebooks wall. I have a table called Wall_Posts(WallPostID(int PK), WallPost(varchar), PostTime, AccountID(accountid of logged in user))

    then when friends reply to a wallpost (WallCommentID, WallComment, PostTime,
    WallPostID, AccountID)

    this works fine. Say on my wall I create a post called Test 1.

    Friends can the click comment and a record will be created in the wall_comment table for that specific wallpost.

    This is on my wall.

    What I'm battling to understand is, say I open up a friends wall and add a post? How do I display it on my wall for example Nitesh posted ..... on Gary's wall

  2. #2
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: Facebook Like Wall Posts - Database help

    edited:


    you can use
    Code:
    select WallComment, A.UserName  from wallpost W inner join Wall_Posts WP on W.WallPostID = WP.WallPostId INNER JOIN Account A ON A.AccountID = WP.AccountID WHERE W.AccountID = @AccountID(accountid of logged in user)
    Last edited by riteshjain1982; Feb 2nd, 2012 at 12:56 AM.
    __________________
    Rate the posts that helped you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width