|
-
Feb 1st, 2012, 08:05 AM
#1
Thread Starter
PowerPoster
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
-
Feb 2nd, 2012, 12:47 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|