Is possible to add planned posts to Facebook page via API? - c#

I want to create simple app, console or ASP .NET to create bunch of planned posts to my Facebook Page. I know there are ways to post posts to Facebook Page via apps, but I am not sure if it is possible to create planned posts.
This is just idea, so I just want to learn if there is some automagic to do this, or it is super complicated. I don't want to neither invent wheel again from the scratch or make harakiri workaround if there is no such function in Facebook API (as I never saw that there).
Thanks in regards for hints.

If by "planned posts" you mean scheduled posts where the post is only made public on a given date, then you are probably looking for this. Create a normal post but set scheduled_publish_time to a future date when you want other users to see it.
scheduled_publish_time: Time when this post should go live, this can be
any date between ten minutes and six months from the time of the API
call.
Once you create scheduled posts, you can retrieve them using /{page-id}/promotable_posts. They do not show up under /{page-id}/feed before they are published.

Related

Does google plus api allows posting status?

I want to make an app for windows phone 8 to post status on Google plus with user signing in only once and without any Google's share button so that I can schedule the status update.
I tried googling but some old posts say that it cant be done while some point that some 3rd party apis can do it however I cant locate any reliable api.
Is this thing possible to do now or still hard luck??
I know this thread How to post in Google+ wall
But it is 2 years old , I want to know if there is an update.
Thanks.
Simply NO. I was also searching for the same earlier in summer & all in vain.

Cross-platform development

I was just about to upload my new, redesigned website when I realised "crap, it's just like every other website."
Then I had an idea. And I've spent the past 2 weeks planning. I have but one thing left to do, and it's proving a little difficult to figure out how I can have my website for PC's, and a whole different site for an iPad (or just larger touch based computers in general) and another for Touch-based phones, and then one for regular phones with web browsing capabilities.
Is this possible? I want separation. I don't want a bunch of javascript files with commands for everything inside them. I want to separate each 'website' and serve it based on the platform requesting the document. How can we achieve this?
If you are to recommend any libraries that may help, note that I will not use jQuery (but list jQuery anyway as others who face this problem might not mind using jQuery)
You can use Asp.net MVC and switch your views depending on the device.
This way you can reuse all your controllers and have different views for each device you want.
Scott Hanselman wrote an article a while ago about this kind of development:
http://www.hanselman.com/blog/MakingASwitchableDesktopAndMobileSiteWithASPNETMVC4AndJQueryMobile.aspx
I would recommend jQuery Mobile to use in mobile devices. I also recommend Kendo UI Mobile, it really looks amazing but the mobile version is not free..
I also suggest to take a look at SPA (Single Page Applications). With SPA you could have a rich javascript application ready for any device. Combining it with Asp.Net WebApi looks very promising.
Jonh Papa made a course on Pluralsight that is completely worth it:
http://www.johnpapa.net/building-single-page-apps-with-knockout-jquery-and-web-api-ndash-the-story-begins/
It's all about thinking about what you really need and how much effort you can put in.
long answer short, i think what you are looking for is Request.Browser to do redirects. You can Access things like Browser.Browser or Browser.Version, i think even a IsMobileDevice is to be found there.
check out: http://msdn.microsoft.com/de-de/library/system.web.httprequest.browser.aspx

How can I post to my wall while tagging some friends via Facebook C# SDK (5.1.1)?

I want to post on the user's wall while tagging a few of his/her friends in it (up to 8 people). Another option is to post on these 8 friends' wall instead.
I used the example given here -
http://developers.facebook.com/docs/reference/api/post/#publishing
And I tried to add "to" section to it (based on what I saw in Facebook Open Graph API) with no luck. Trying to change posting to .Post("[fbid]/feed") didn't work as well. It just posted on my wall instead.
What am I doing wrong? can someone publish a full example?
The Graph API does not currently support tagging users in posts, although it has been requested as a feature. You could make 8 different wall posts but there is a chance that you application will get disabled for too many wall posts if enough users hide your application or mark it as spam. But to do it, you just do an HTTP POST to /friendId/feed.

MVC 2 Twitter Application

This is my first time here so I apologize in advance if this question is not relevant here. I have just started to learn C# and MVC 2. Most of my learning so far has been from examples and I wanted to learn from an example which I can learn a lot from.
So my example is I want to create a C# web-app for twitter. Meaning the web application that has a text box and a submit button using MVC 2 and entity framework and When any content is submitted via the text box, the content is posted to a Twitter account. The content and twitter id are logged to a database and the form is shown again with the most recent content on the page.
Much obliged to anyone who can help/guide me on this and truly appreciate the help.
Derek
Download and follow the tutorial:
http://mvcmusicstore.codeplex.com/Wikipage?ProjectName=mvcmusicstore
Pretty much everything you want to learn about MVC is shown there. Granted it's MVC3 but you might as well start learning with the newest version.
LinqToTwitter is one library that I used. I used it for a different purpose but it has the APIs that will help you build what you want. There are plenty more libraries which will help you building a twitter client if you wish to explore more.
Other post by Sergio has already pointed you to a right place regarding MVC.

Flash Facebook Application How to do it

I'm experienced in database systems. This is the first time I'm developing a web site completely, either i will use firstly flash.
I do not know how I can put a flash application as a facebook application, which is working behind with a asp.net page [web services between]
If you will inform me about, i will be happy. Sorry for my hurry and being lazy, and sorry for this stupid question. I need an shorter and helpful answer.
Refer following video and articles under that page's resource section.
http://www.adobe.com/devnet/facebook/articles/video_facebook_quick_start.html

Categories