C# - Get Facebook Wall Posts?

Jun 18 10 at 12:05

I am using Facebook Toolkit. I have appKey and appSecret, but I dont want that visitor need to conenct to facebook. I will use my login/passwork to get my wall posts.


Facebook Wall Posts On Website?

Jan 25, 2011 08:25 AM

Need the steps to show my facebook wall posts on my asp.net webiste/

View 3 Replies View Related

Retrieving Posts From A Wall, But Without Logging Into Facebook?

Jun 10 10 at 14:12

Basically, I would like to include my latest Wall posting on my website. But, so far, everything I have read needs the visitor to the site to log-in to Facebook which, in theory, would then retrieve their latest Wall post. In prinicpal, I guess it would be like an RSS Feed.

View 1 Replies View Related

ASP And FaceBook Wall Integration

Mar 26 10 at 18:55

I like to send messages when I want from my aspx webpage. I used the different examples and used FaceBook API 3.1. I am getting error as "service temporarily unavailable". I have assigned AppKey, Secret Key and session key. My sample code is below.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Facebook;
using Facebook.Web;
using Facebook.Rest;
using Facebook.Session;
using Facebook.Utility;
using Facebook.BindingHelper;
using Facebook.Schema;
using Facebook.Web.FbmlControls;
using Facebook.Session.DesktopPopup;
namespace FaceBookApp
public partial class _Default : System.Web.UI.Page
private const string ApplicationKey = "MY_APP_KEY";
private const string SecretKey = "MY_SECRET_KEY";
private Api fbAPI;
private ConnectSession _connectSession;
// private List<EventUser> _eventUsers;
protected void Page_Load(object sender, EventArgs e)
protected void Button1_Click(object sender, EventArgs e)
_connectSession = new ConnectSession(ApplicationKey, SecretKey);
_connectSession.SessionKey = "MY_SESSION_KEY";
if (!_connectSession.IsConnected())
// Not authenticated, proceed as usual.
//lblStatus.Text = "Please sign-in with Facebook.";
// Authenticated, create API instance
fbAPI = new Api(_connectSession);
string response = fbAPI.Stream.Publish("publish steven on facebook.");

The error message is confusing. It must be a very simple solution. I don't know what I am missing. Here is the facebook exception.

{"Service temporarily unavailable"}

View 1 Replies View Related

Create Message Wall - Like Facebook's

Apr 10, 2009 02:09 AM

i'm trying to figure out how to create a message wall similar to facebook or myspace, only much more simple, just txt messages. I've looked around and i can't really find any tutorials or posts on how to do this. if anyone can point me in the right direction or provide me with some links. I mean, even something as simple as you see on practically every site out there, where at the bottom the user can leave a comment or feedback and it posts it to the page.

View 1 Replies View Related

SQL Server :: DB Schema For Facebook Like Wall?

Sep 16, 2010 09:33 PM

I am making a db schema for facebook like wall structure. I need to save wall posts, share a link, share a video
stuff into my database. Till now I am able to make this schema :
[ID] [int] NOT NULL IDENTITY(1, 1) ,
[PostText] [nvarchar](MAX)
[PostedByUserID] [int] NULL ,
[PostedOnUserID] [int] NULL ,
[DateCreated] [datetime] NULL

Next I have to add the schema for adding the "share a link" and "share a video" feature.

[ID] [int] NOT NULL IDENTITY(1, 1) ,
[WallText] [nvarchar](MAX)
[PostedByUserID] [int] NULL ,
[PostedOnUserID] [int] NULL ,
[DateCreated] [datetime] NULL,
[SharedLink] [nvarchar](1024) NULL ,
[SharedLinkTitle] [nvarchar](512) NULL ,
[SharedLinkDesc] [nvarchar](512) NULL ,
[SharedLinkImageSrc] [nvarchar](512) NULL

Now with this schema:

1st case: When the wall post is inserted the [SharedLink], [SharedLinkTitle],[SharedLinkDesc], [SharedLinkImageSrc] columns will be inserted as null and rest of the columns will have the values.

2nd case: When the "link shared" is inserted the "[WallText]" column will be inserted as null and rest of the columns will have the values.

For my case 70% of the time the wall post will be made and 30 % "links" will be shared which means 70 % of the cases [SharedLink], [SharedLinkTitle],[SharedLinkDesc], [SharedLinkImageSrc] will be inserted as null. Now my concern is that is it okay to keep the null columns inserted or I should go for a separate table for "shared a link" purpose and have the separated table like this:

[ID] [int] NOT NULL IDENTITY(1, 1) ,
[PostedByUserID] [int] NULL ,
[PostedOnUserID] [int] NULL ,
[SharedLink] [nvarchar](1024) NULL ,
[SharedLinkTitle] [nvarchar](512) NULL ,
[SharedLinkDesc] [nvarchar](512) NULL ,
[SharedLinkImageSrc] [nvarchar](512) NULL

I have to go in similar manner to add the schema for sharing the videos further. Please guide me in which direction should I move?

View 1 Replies View Related

Implement Threaded Conversations Like Facebook Wall?

Jun 9 10 at 20:51

I'm just wondering what's the best way to implement a threaded conversation like the Facebook Wall where the comments are displayed under each post, and older comments are collapsed and expandable. My instinct is to use a nested datalist, but I think that might take a toll on performance.

View 2 Replies View Related

Facebook Offline Publish Stream To Wall

Jan 10 at 22:15

I am using facebook graph API to get the loged in user token [URL] Also, I am grabbing these facebook params "publish_stream,email,offline_access" when any user logs into my website. If i have 100 uses who logged into my website, How can i post an offline message onto their wall and if possible to their friends wall too. let me if this can be done?

View 2 Replies View Related

Recreate Facebook Like Reply Posting Wall?

Jan 17, 2011 09:16 PM

I'm trying to recreate a facebook-like reply posting Wall with multiple users; 'm pretty new to the web environment but I have many years of development expierence so I should understand most of what you throw at me aanyone can put me in the right direction what type of script/lib/classes I should check. or even better some example code.

View 1 Replies View Related

Web Forms :: Wall Post Functionality In Facebook

Jan 24, 2011 06:35 AM

I want Post to Wall Post functionality in facebook fan page application. I am developing it using ASP.Net. I am using javascript sdk and applying strem.publish method. Below is th code which i have used.


View 1 Replies View Related

C# - Query Facebook Wall Of Specific Profile?

Feb 9 at 20:13

I need to post on a website the wall notifications of a Facebook group, the group and the website belong to the same entity. I've looked at many of the options available, but I would apreciate if someone with a bit Facebook developing experience told me what is the best path (most straighforward). The website is not intented to interact with Facebook in any other way, there would exist no Facebook login button, and this one wall would be the only one being consulted. I've looked at the possibility of grabbing an rss feed from the wall, but that option doesn't seem to exist. The website is being done with asp.net (c#).

View 2 Replies View Related

C# - Facebook Connect - How To Post To User's Wall Using Graph API

Jul 26 10 at 0:38

I've integrated my website with Facebook Connect, authorization/single-sign on all working great.

Now im trying to post something to the user's wall, which im having some problems with.

First of all, im using the "old" JavaScript API (FeatureLoader.js).

These are the Graph API URL's im using:

private const string UserDetails_Url = @"https://graph.facebook.com/{0}?access_token={1}";
private const string Feed_Url = @"https://graph.facebook.com/{0}/feed?access_token={1}";
private const string TokenExchange_Url = @"https://graph.facebook.com/oauth/access_token?{0}";

I'm using the TokenExchange_Url URL to receive the unique user OAuth token to make calls with.

This is working fine, because a) i receive the token back, and b) i can issue HTTP Get Requests to the Graph API (i.e UserDetails_Url) and it works fine.

But, i cannot Post to the User's wall using the Feed_Url.I'm pretty sure the issue is i haven't got the appropriate user permissions to post to a wall (i.e facebook-side setting).

Now, i realise i can use the fbPublish API method client-side to do this, but i want to do it server-side with the Graph API.

I wont bother showing my code which attempts the call to the Graph API to post to the user's wall, as its pretty straightforward (HttpWebRequest, set method to "POST', set content type/length, write bytes to Stream, etc).

I think the problem is i need the user to grant my aplpication "publish_stream" extended permissions.

The Facebook Graph API doco says to do this in your authorization request:


Which confuses me because im using the following URL to get the OAuth token:


Am i using the wrong Token Exchange URL? Why is there two different URL's to seemingly get the same piece of information?

Yes - i have read the Facebook API doco (numerous times), and yes i have read other similar SO questions, but they all result in using the client-side API to publish to wall, i want to do it server side.

For the actual "Facebook Connect" button, i'm using the standard FBML:

<fb:login-button length="long" size="medium" autologoutlink="false" background="light" onlogin="facebookLogin('/login')" class=" fb_login_not_logged_in FB_login_button FB_ElementReady"><a id="RES_ID_fb_login" class="fbconnect_login_button"><img id="RES_ID_fb_login_image" src="http://static.ak.fbcdn.net/rsrc.php/zB6N8/hash/4li2k73z.gif" alt="Connect"></a></fb:login-button>

When i click this (and not logged into Facebook), it pops up a window which the user can login. But it doesnt have the "Request Extended Permissions" dialog - shouldnt it? Or is that another popup i need to manually trigger?

So to sum up, here are my questions:

How do i grant extended permissions to publish to the user's wall?What is the correct URL for obtaining an OAuth token?Is there a definitive source for showing how to post to a user's wall using server-side Graph API calls?

View 1 Replies View Related

To Post On Wall Of Facebook Fan Page From External Website?

Mar 16 10 at 15:41

I'm using an ASP.NET Facebook Developers Toolkit (http://www.codeplex.com/FacebookToolkit) on an external website, and I'm also the admin of a facebook fan page for the website. Users on my website (may or may not be facebook users) create content articles.

I would like to hook up these articles to the Facebook fan page, so that, when they write the article, then ones with FB accounts can sign into FB and post on the Fan page. I'm sure they would need to be a fan first.

View 1 Replies View Related

Allowing Friends Only To View Users Wall (facebook Style)?

Dec 30, 2009, 14:28

I am making a mini-facebook website, and have been implementing a users personal wall where members can write on anyones wall.I don't want users to be able to write on OTHER users wall unless they are "friends". So i have created a table:-

hussaini_friends {friend_id, user_id, f_user_id, status, date_added}

So in the above table, i have user_id and f_user_id. Then there is a status column. This will show the status of the 2 users. (either accepted or declined)..

Now what i need to do is to check if the status of the 2 users is "accepted". If so then the users wall will be displayed. Otherwise the user will be asked to add the user as a friend.

Currently i do this:-PHP Code:

"SELECT (hussaini_comments.comment_id) AS CID, " +
"(hussaini_comments.comment) AS Comment, " +
"(hussaini_comments.user_id) AS UID, " +

This currently gets the details to pull out the information of the wall that belongs to a specific user. Now i need to add to the SQL so that it checks to see if the users are friends.

Would it be better it i have a separate SQL statement to check if the users are friends then show their details..?

View 3 Replies View Related

Web Forms :: Post Html Code In Facebook Fan Page Wall

Oct 15, 2010 08:57 AM

I am creating Fan page and application for Post something in Fan page wall from ASp.net page. But Text get post Nicely. But Images and attachments not get post in my wall. Is ther any way to Pass HTML code from asp.net to post in my Facebook Fans page Wall.

View 2 Replies View Related

Forms Data Controls :: Facebook Style Wall Using ASP Repeater?

Apr 28, 2010 10:43 AM

i have managed to develop a status wall some what similar to facebook, using Repeater Controls- Parent Repeater is bound to the status and the child repeater is bound to the comments inside that status. I am strugling to implement the following solution- hiding and displaying a btnDeleteComments - depending of the owner of the comment- i.e. only owner of the wall and those who leave the comment can only delete that comment.

Status X
Comment A - left by member John
Comment B - Left by Member Doe
Comment C - Left by Member Harry

The owner of the wall can delete all comments, and only John can delete comment A, Doe can delete comment B and so on Here is what i have tried so far

1. fill a data set with two tables and relate them (table one = status, Table 2 = comments of that status)
2. data bind the repeater to this data set
3. here is the HTML of the child repeater

<asp:Repeater ID="rptComment" runat="server"
<asp:Image ID="ImgComPic"
ImageUrl='<%# DataBinder.Eval(Container.DataItem, "["comPicThumbPath"]")%>'
runat="server" />
<asp:TextBox ID="TxtDisplayComment"
ReadOnly="true" TextMode="MultiLine"
Rows ="3"
BorderWidth="0px" runat="server"
Text='<%# DataBinder.Eval(Container.DataItem, "["Comment"]")%>'
Text='<%# DataBinder.Eval(Container.DataItem, "["CreateDate"]")%>'>
<asp:TableCell HorizontalAlign="Right">
<asp:Button ID="BtnDeleteCom" runat="server"
CommandName=' <%# DataBinder.Eval(Container.DataItem, "["CommentID"]")%>'
Text="Delete" Width="60px" CommandArgument="DeleteCom" CssClass="buttonDelCom"
Visible=' <%# DataBinder.Eval(Container.DataItem, "["ViewersComment"]")%>' />
<br />

The higlighted bit is causing the cast invalid error- i thought this would do the trick, by deafult all the delete buttons next to each comment is hidden for members other then the owner of the wall- and only if they are the one who left the comment will teh delete button be visible-

<%# DataBinder.Eval(Container.DataItem, "["ViewersComment"]")%>'

The SQL which retreives the comments for a specific status, also retrieves a column2 ViewersComment which is either 'true' of 'false', indicating wether that comment was left by this person viewing the status wall-

View 3 Replies View Related

AJAX :: Facebook Wall Style Partial Page Rendering?

Jan 31, 2011 08:19 PM

I have to create facebook style wall in my project. So far I assume that I will get X(the number that needs to be shown be default) number of wall posts from database, bind them to some control like Repeater and add update panel in each row in repeater so that only the portion of page only related to that post is updated once any new comment is added in that post.

Now, since I am new to AJAX so cant figure out how to display the "older post" link functionality there. As we have link at the bottom of facebook wall which once clicked appends the certain number of older posts at the end of the wall.

Similarly, once a new post is added by someone, it gets added at the top of the wall, how can I acheive that so tha only the limited portion at the top of the wall gets refersed and updated instead of whole page post back.

View 2 Replies View Related

Programmatically Get Data On Group's Facebook Wall Without Having To Popup Login Screen?

Sep 16 10 at 1:12

i have a group page. i am creating a website for the group and they want to be able to see the recent facebook updates (what you see on the group's facebook wall) on their website. is this possible without having to have a facebook popup login and just programatically pass in my login information?

View 1 Replies View Related

Access Facebook UserId In Facebook Canvas Before OAuth Authentification?

Sep 1 10 at 7:35

In my facebook canvas applikation, i store the access token in session. (I use ASP.NET MVC)

But i want to store the access token in a database along with the facebook user id that i can save different access tokens for different facebook users accessing my application.

So when i query the facebook user id and if it doen't return any access token, i request permissions and get the access token for that user.

How do i access the Facebook UserID for the user accessing my canvas application before doing any authentification?

View 2 Replies View Related

How To Create Facebook Application Via Facebook Developer Toolkit

Dec 26 10 at 16:20

I'm trying to create a basic application, i created facebook application before but everything has been changed.

I looked every where to create a basic application, but now i'm getting mad because there isn't any working sample. Because of the changed links, facebook api changes, facebook wiki changes i couldn't find a working copy.

write a basic app that gets permission to write user name to screen in facebook developer toolkit asp.net. I looked computerbeacon.net, codeplex, and some other pages but i couldn't succeed.

Edit: I' m adding some screenshots and some codes, it will may be you to find my problem.


View 1 Replies View Related

How To Pull Facebook's Friends Status And List Using Facebook Api

Dec 20, 2009 01:46 PM

how can i pull facebook's friends status and list etc using facebook api and show that all in my asp.net page?? like we use twiter api? actually i googoled a lot bt unable to fine any good refrence.. most of them are like creating page(canvas) page there at facebood developer site and for focaebok application.

View 1 Replies View Related

How To Login Directly Into Facebook Using Facebook Api Through Webservice Using C#

Sep 20 10 at 15:33

i created a mathod facebookInfo(string username,string password) ,so i received username and password but after receiving its not possible to login at server side,because ther is only one way to connect to facebook using facebook api ie.


and its open IE browser,so there is any way to login automatically and get session,using any javascript or nay other way at server side using ASp.net in C#.

View 1 Replies View Related

C# - Unattended Login To Facebook Using Facebook Connect?

Mar 4 10 at 21:12

if i want my facebook connect site to access user information about a facebook user, is it necessary for that user to be logged in?

View 2 Replies View Related

Displaying Facebook Popups With .net Facebook SDK?

Nov 14 10 at 0:26

I would like to programatically (sp?) open a box asking my users to type in what to publish, but I want it to look like Facebook's own boxes.

View 1 Replies View Related

Architecture :: Process Of Implmenting The Users Wall

Dec 30, 2009 02:08 AM

I am making a mini facebook style website. I am in the process of implmenting the users "Wall" where users who are the users friends can insert comments etc..Now there is one thing i cant think of how to do. Basically each wall will be specific to a certain user. And all the walls will have different comments on them.Now i have managed to implement inserting comments etc on a users wall. BUT the problem is that it pulls out the comments for ANY user who is logged in.So basically the logic here would be that a wall belongs to a specific user, which contains comments made by users.

View 4 Replies View Related

C# - Unable To Save Wall Post Data?

Mar 16 at 2:58

i have a partial website up as im having extreme difficultys trying to figure out how to save some information http://project.mcr00t.eu/ You can log into the site with any credentials atm there is no functionality for it atm, it will bring you to the users profile page which has a wall posting part to it, you can write on your wall similar to facebook.

The part im trying to get my head around is how to save that data so it stays on the wall im using asp and mysql? Can any one help?

View 1 Replies View Related

MVC :: Creating Partial Views Of Thumb Image Display Like Grid Wall

Jul 09, 2010 03:08 PM

I'm just returning to .NET and I am still getting used to the structure and setup for MVC.. I have a query about partial views /user controls - (i guess). I want to create a partial view of thumb image display (grid-wall like) reusable across the site/solution. The model for this already serves detail pages across the site. I want to use one attribute of the model collection e.g. 'model.thumbImage' to create a grid of thumb images.

My question is do I have to create a separate controller for this partial view e.g. Controllers/GridController.cs and then a view Views/Grid/index.ascx ? What is the best way to apprach this? I do not want the grid to be served/ routed directly i.e grid/index.ascx.

View 2 Replies View Related

How To Login To Facebook Using The Facebook C# SDK

Dec 3 10 at 10:34

I'd like to post messages to a group wall without asking user for login information -I'd like to do it programmatically, I can use my user/pass if necessary-.

żIs it possible to do this without showing the user the login screen?

Note: I'm working with Facebook C# SDK [URL] under ASP.NET.

View 1 Replies View Related

Do Calculations Before It Posts

Jun 01, 2009 04:20 PM

I am using a merchant that gives you a button that is a form that posts to the merchant. I need to beable to do calculations before it posts, so I would like to dynamically build that button /form on the fly do my calculations and then make it post. How do I do that.

View 1 Replies View Related

MVC :: Add And Edit Posts In Db?

Nov 17, 2010 08:11 AM

I'm trying to save and update contacts. I can add new contacts, but when I try to update a contact it will be inserted as a new contact in the database. I can't understand what I'm doing wrong.


View 9 Replies View Related

Website - How To Localize New Posts In .net

Mar 14 at 16:09

I am doing my final year project and have decided to make a website in asp.net. For that I'll be using Micrsoft Visual Studio 2008. I'm making a Real ESTATE properties website. I want to know how to localize or create new posts in asp.net( like in WORDPRESS) and also when I hit SEARCH it should search for the desired keyword or the searched post.

If post is not possible then it should display pages...

View 1 Replies View Related

Can Read Posts From Twitter

Mar 16 at 15:36

On my site I've got a section which displays the latest tweets from my twitter account. I used Twitterizer to read latest tweets from my account and bind them to a Repeater However, with Twitter's new security, I can't use this as I must use oAuth.

What is the best way of returning tweets from an account?

View 2 Replies View Related

MVC :: Posts Not Working In New Environment?

Jul 22, 2010 10:56 PM

I have a project in VS 2010 and works great in my dev environment, including a single post that has the def:


But when I publish to another box, I get an error "Could not instantiate file name generator.". This only occurs on the post, all the other ActionResults work fine.

View 2 Replies View Related

SQL Server :: Retrieving Posts By Their Tag?

Sep 18, 2010 09:40 PM

I have the following code in a stored procedure to retrieve all posts:


However, I am having trouble selecting posts by their tag..

View 9 Replies View Related

Implement Partial Posts In Application?

Jul 23 10 at 10:50

I am working on asp.net. and i want to implement partial posts in my application. my situation is like that i dont want to url changed in address bar and even page should not refreshed at all.

for that i used script manager and update panel but still page refreshes and url also changes.

View 1 Replies View Related

SQL Server :: Getting Last Value From Database And Check For Posts

Jan 20, 2011 12:17 PM

topic - topicid (pk),sub, message (content), catid(fk), createdby, createddate, updatedby, updatedon, viewers( count of views)

post - postid(pk), topicid(fk), post (content), createdby, createddate, updatedby, updatedon.

As i told in my last post, I am designing a forums website. I am not able to design the query to retrieve the topics for a category for example say catid=1. I want to display it in a grid view as done in every forums.

I made some query :

SELECT Topic.Sub, Topic.CreatedBy,COUNT(Topic.viewers) from topic where catid=1

group by Topic.Sub,Topic.CreatedBy

This is for retrieving the topic name from the subject and the createdby giving the topic starter and the total no. of views of that topic.

Now i want to make a query from the post table displaying the last post in the topic and if the post does not exist, i want to display the 1st post from the topic table as the last post done.

View 22 Replies View Related

Enable Users To Edit Their Own Posts?

May 19, 2009 06:15 PM

I am trying to enable users to edit their own posts. But i am having some trouble. Baiscally i am displaying my data as so through a DataList..



When i run this code it gives the following error message:- The name 'Container' does not exist in the current context

View 8 Replies View Related

SQL Server :: Count Posts For Each Topic?

Oct 26, 2010 03:54 PM

There are 2 tables [forumitems] and [forumitemsblog]

forumitems has the itemid,itemdescription,datecreated,whocreated fields

forumsitemsblog has the itemid,blog

I need to show how many posts are in each item description using the itemid so like count(blog) where itemid=itemid


View 5 Replies View Related

Any Free Controls To Notify User For Posts?

Sep 08, 2010 07:30 AM

I have written a little social network for one of my sites. Is there any controls out there free to notify the user of wall posts etc?

View 5 Replies View Related

Session State Lost Between Ajax Posts?

Jul 16 10 at 12:10

I have an asp.net login page, which when initialized sets some session variables. When the user clicks login, an AJAX request is made which validates the user and sets additional session variables and returns a result to the client. The client is then redirected based on the login result. In the redirected page, I can access the session variables set when the login page was initialized (i.e. before the login) but none are present for those set during the login validation (part of an ajax call).

is this expected behaviour? Why would an ajax call generate a new session and thus cause the data to be lost?

View 3 Replies View Related

Copyrights 2005-14 www.BigResource.com, All rights reserved