RoR fb_graph application feed

I am using fb_graph gem for Ruby on Rails. I want to post a message on wall but the problem is that when I post the message (feed) it is posted by my user instead of my application, on the application's wall..

so it looks like
   Name Surname
   message content
   via application_name
and I want it to be
    application_name
    message content

My code is:

application = FbGraph::Application.new(app_id).fetch
application.feed!(:message => 'test', :access_token => access_token)

Answers


I have found solution to this question. I have generated access token for application instead of user. This can be found on https://developers.facebook.com/docs/authentication/


Need Your Help

MongoDB Update All Fields If Document Exists PHP

javascript php mongodb

I'm using MongoDB with PHP and I want to update all fields in a document if it matches certain criteria.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.