Category : Javascript | Author : Chtiwi Malek | First posted : 5/8/2012 | Updated : 5/8/2012
Tags : facebook, api, graph, post, wall, page, public, javascript, code, feed, link, share
Post on a user wall or a facebook page using FB.api

Post on a user wall or a facebook page using FB.api

In this post we will see how to make a full wall post to a User's Profile or to a public facebook page using the Facbook javascript Graph API.
The wall post will contain this fields : a Message, Name, Description, Link, Picture and Caption.

After authenticating the User (you need the publish_stream permission), here's what to do:
	var params = {};
	params['message'] = 'The message';
	params['name'] = 'Name';
	params['description'] = 'this is a description';
	params['link'] = '';
	params['picture'] = '';
	params['caption'] = 'Caption of the Post';
	FB.api('/me/feed', 'post', params, function(response) {
	  if (!response || response.error) {
	    // an error occured
	  } else {
	    // Done
	    alert('Published to stream');
If you want to post on a facebook page wall instead of users wall (you need to get manage_pages permission from the user), just replace the FB.api line with:

... FB.api('/page-id/feed', 'post', params, function(response) { ...

The example above will publish a post not a Link, if you want to post a Link/Url use this code:
	var params = {};
	params['message'] = 'The message';
	params['link'] = '';
	FB.api('/me/links', 'post', params, function(response) {
	  if (!response || response.error) {
	    // an error occured
	  } else {
	    // Done
	    alert('Link Published to stream');
Comments & Opinions :
works great, thank you so much. Thanks!
- by Yudi on 10/16/2012
and for groups??
Hi, I was wondering how clould you do it for a group instead a page, i tried replacing page-id with group-id but it doesn't work,
i have "an unespected error" and then i add the user's token but still get the same error,
do you know how to do it ?
- by Paco on 12/18/2012
Great Post!
Extremely useful post!
- by Priyantha on 4/16/2016
In the far faraway past in the majestic Himalayas, the science of Ayrveda began a long evolution over the course of 5, 000 years. A synergistic system which combines science, faith and philosophy, Ayurvedic medicine was originally practiced by the prophets known as rishis. Learn more about ayurvedic medicine here. 

Osteopathy is the fastest growing health profession in america, Canada & Europe. It has been chosen as one of the top 25 occupations in demand by CIBC. It is a superb career choice for folks interested in becomming a 

Are you tired of giving the same old gifts over and over again? Everyone has purchased and received numerous baskets of shower gel and lotion and quite a few small pots of flowers over the years. Eventually, everyone reaches a place where they want to give something 

Marketing SEO solutions are powerful and effective tools that will greatly increase your online presence by generating quality traffic to your website. This will skyrockets your search engine ranking positions, which ultimately leads to making a lot of money using the internet. 

Find out why most home buyers try a Realtor to purchase their home, and are glad they did! Exclusive buyers agents provide home buyers with protection possible, plus have the experience to help you find the right home, and negotiation the best price and terms. 

In today's soft economy and having used the toughest years in the industry, auto dealers want closely at opportunities for enhanced and improved profit. Generally considered a "necessary evil", the describing department is now being looked at a source of new gross margin and 

Parents are the key to success. Programs begun to initiate parent weekends, parent seminars and other ways to pull the parents into the healing process. This encourages a more healthy view that these are family problems not just a child's problem. 

If you do not make a determination before it closes, "You rest, you lose". You will have to wait prior to the next open enrollment period to select a plan. Oh wait... You will have to pay a tax penalty as well. Whoa! 

There are so many health insurance coverages companies coming up these days that you can be sure you will get an insurance that will fit for you and the kind of premiums you want and that too at an affordable 

A term insurance policy of life insurance products is only to offer life coverage during the period you have decided as the term of that particular plan. When that term has ended, it's your wish if you continue, that you can, or leave the 

If you are sitting in the middle of the spider web, with all the lines running outward linked to the other line, and whenever someone you are connected to create a connection for you, you can make the vibration coming from that direction. What is really happening is that all person you are connected to is the center of a web of their own. 

To date, traditional international law does not consider human environmental rights to a clean and healthy environment to be a jus cogens human right. Jus cogens ("compelling law") refers to preemptory legal principles and norms that are binding on all international States, regardless of their 

Whenever you are looking to begin a business (doesn't matter if it is an online or traditional venture), it's always good to get in touch with legal experts or local governing bodies to get an idea of legal guidelines that will affect your 

Bankruptcy is quite a serious matter and there is nothing worse for an individual or a corporation than having to file for bankruptcy. It can impact many people and ruin their careers and lives and establish them completely 

The damage may be in the form of physical injury, monetary loss or in the form of psychological effects. In legal language, we use the term personal injury for those three things. Personal injury can be physical, psychological and monetary or all of them in nature. 

A watching live sports event on TV is an enjoyable experience for sports fans. Through cable and satellite ongoing, live telecast of soccer tournaments can be watched on TV. Ordinary people can also have the chance to watch the favorite sport on earth through their television 

When choosing a community to build your new home there are some key questions to ask the new home developer before   deciding whether you want to build in that community or not. Read this article to find out what those key questions 

In our last article we discussed what is this great and media, and how you might know very well what underlying message they are giving us with the use of something called Narrative Theological Biblical criticism. 

It is all too easy to take the roof over your business for granted, and it is something that most people very rarely think about during the day time. It is always there; it's probably that it was there before you started working at your company, and it will probably be there long after you have moved on to another job. 

Learn how to influence your son or daughter's behavior without them knowing it. Developing children with high self-esteem and confidence requires these 5 secrets that show you how help them win at life. Give them the edge they need to succeed and they'll have the skills needed to achieve their dreams. 

Fleas and ticks -- there's seems to be no end to their recurrence. Fortunately there's an easy way to control this, with Frontline Plus. Here's a concise guide on Frontline Plus and how it can benefit your dog. 

This article explains the common misconception that the sport of Powerlifting is a Power sport but in fact is the complete opposite. It is a strength sport. This article will explain the difference between the two types and show you how both are excellent tools for lessons in not just powerlifting but all sports. 

This installment of the ongoing resume writing tip series focuses on putting your title to work for you. This article suggests you in the ante (and power) by including an action focused title that demonstrates how you will impact the business. 

Buy low, sell high, it's a credo discomfort heard before, and it sounds like a sure way to make income using your real estate investment, right? Well, it's harder than that quote makes it sound and you have to work diligently to ensure you see a great, high return. 

A plumber is a professional who accounts for repairing and installing the pipes that are used to carry sewage and water. The majority of plumbers work in the plumbing or ac industry, but nearly 14 percent of plumbers are 

Have you ever thought about growing your own hops, stop thinking and start now. It is easier than you think and coupled with the knowledge that the beer that you have hand crafted contains hops that you have grown in your own back garden and you have a compelling argument to give it a 

College students are graduating, and Commemorative Day is fast approaching, which means summer is nearly here. Getting ready for summer doesn't have to be a painful experience; teach yourself healthy habits that you can continue all through the year that will help you get into shape and stay in shape. 

Caring for your aging parent is overwhelming and confusing. Many people are thrown into these situations without any notice or experience. I thought my father was well-prepared until I found out he wasn't. The difficulties that appear during the parent-child role reversal is more difficult than anyone can anticipate. 

QR code is a versatile tool that is immensely a good choice for real est marketing. Set to become an essential the main real est marketing in close future, it makes sense to get it now. Keep reading to know how QR code can help make your listings sell better. 

What was at one time your dream home has now become your nightmare. From no kids to three kids, you're running out of room and your last nerve has been frayed by Jr's hamster that has been out of his cage for the past 
- by DurhamCarpet on 5/22/2017

mac cosmetics makeup

nike running uk

polo ralph lauren outlet

jordan shoes

fitflops sale clearance

nike jordan shoes

fred perry polo shirts

michael kors handbags

longchamp handbags

coach factory online

coach outlet

adidas yeezy boost 350 v2

thibaut courtois jersey

north face

ralph lauren shirts

nike air max 90

prada handbags

nike outlet store

pandora outlet

longchamp bags

stan smith

michael kors outlet

salvatore ferragamo shoes

nfl jerseys

adidas zx 700

vans outlet

ray ban wayfarer

hermes handbags

adidas outlet

cheap jordans

michael kors purses

cheap mlb jerseys

coach outlet store online clearances

vans for sale

michael kors tote vanilla

prada bags

coach outlet store online

ralph lauren polo shirts

tory burch handbags

mcm handbags

ecco sandals

christian louboutin heels

michael kors outlet clearance

adidas stan smith trainers

ray ban outlet

oakley outlet

tory burch outlet

nfl jerseys

true religion runway

air max 2016

michael kors outlet online sale

vans outlet

hermes birkin bag

michael kors outlet

nike outlet store

red bottom heels

ralph lauren polo shirts

coach outlet

coach factory online

coach factory outlet

michael kors outlet clearance

pandora jewelry

adidas outlet store

replica rolex

nike trainers uk

coach purses

adidas trainers women

gucci outlet

michael kors bags

reebok shoes

vans store

nike roshe run

ray ban sunglasses wholesale

michael kors bags

coach outlet online

nike air max 2017

ray ban eyeglasses

coach handbags

new balance shoes

ysl outlet

pandora charms sale clearance

burberry outlet

canada goose jackets

michael kors outlet clearance

adidas nitrocharge

prada bags

coach outlet store online

pandora jewelry

cheap nfl jerseys wholesale

nfl jerseys

birkenstock shoes

true religion sale

michael kors handbags outlet

christian louboutin shoes

longchamp handbags

ralph lauren

coach outlet

christian louboutin sale

burberry bags

michael kors outlet online sale

- by hzx on 6/6/2017

Early in Ray Ban Sunglasses Online 1686, Tyrconnell Cheap Toms Shoes Outlet issued a pandora jewelry store proclamation in accordance Nike Outlet with that of the king, that all classes fitflops sale uk of Yeezy Black his majesty's subjects were nike sportschuhe allowed to new pandora charms serve in the Air Max Femme army, accompanied by an order Soccer Boots Outlet nike that Nike Online Store the arms which retro jordans for cheap had hitherto been ugg clearance given Nike Air Jordan 11 out should Nike Shoes Sale Store be returned Doudoune Moncler Pas Cher to the king's womens nike air max stores, preparatory to a reorganization of Cheap Louboutin Heels the Cheap Toms Outlet Store militia. The militia of Louboutin Wedding Shoes the country, new yeezy shoes which Air Max Kopen at newest lebron shoes that Canada Goose Outlet time must have numbered Cheap Real Jordans about 20,000, were Christian Louboutin Heels exclusively Protestant, and were officered pandora beads by men Descuentos Nike of Nike Air Huarache For Sale the most proscriptive abercrombie and fitch store tendencies, and apart from those Ugg Outlet Online Store regularly enrolled, Adidas Yeezy Cheap the whole Protestant population adidas store were under arms, subject to the call Ray Ban Sunglasses Cheap of local leaders nike air jordan pas cher at a moment's notice. Being, adidas outlet almost to a man, opposed Nike Air Pas Cher to the zapatos de futbol nike measures of Catholic redress Yeezy Shoes Discount Marketplace then being instituted nike air max running shoes by the Jordan Shoes Air king, Discount TOMS would Ugg Pas Cher Femme appear sufficient motive Adidas Soccer Cleats Cheap for Nike Air Damen this Nike Air Women action on the Boost Yeezy Sale On Line part of Nike Store the deputy. longchamp bags on sale For the last generation goedkope nike air max they nike schuhe günstig had been nike jordan shoes the Nike Factory Store rigorous Nike Air Sneakers executors of the acts of Canada goose dam attainder and Discount Air Max settlement; canada goose jackets on sale the memories they awakened could Cheap True Religion Jeans scarcely Air Nike be Air Max Sneakers conducive Adidas Yeezy Boost 350 For Sale to good order or nfl store a Negozi Pandora feeling of Adidas Shoes Discount Marketplace public security: Ugg boots Sale not chaussures nike pas cher being national, North Face Outlet they Vans Black Sneakers were regarded Uggs Pas Cher Soldes with zapatillas nike baratas distrust, and were Pandora Official Website held as converse store unsafe guardians of zapatilla adidas the Nike Soccer Cleats Boots liberty which they openly denounced. Nike Zapatos Many of pandora outlet store their leaders ugg store were known to be new jordan releases implicated in Air max dam Monmouth's Stone Island Outlet rebellion, nike sb stefan janoski and Nike Air 90 as a precautionary Zapatillas Air Max measure, it Nike Pas Cher Femme became necessary Adidas Originals Superstar to infuse a spirit of loyalty among them by the introduction of Boty Nike Air a Catholic element. To Doudoune Moncler Site Officiel accomplish this Jordan Schoenen seems moncler jacket sale to Chaussure Air Max have been the nike sneakers great Coach Bags On Sale trouble of Canada Goose Outlet the chaussure basket homme deputy. Yeezy Boost Sale Online Men Pandora Store Sale there Nike Tn Requin Pas Cher were, to any botas de futbol number, ready at nike air his call, but günstige nike schuhe arms were huarache sneakers wanting, and the revenue of scarpe hogan outlet the Air Jordan Retro Sale country Canada Goose Womens Coats was nike shoes scarce sufficient to defray the expenses of Cheap Michael Kors Handbags the civil government. vans shoe store There New Air Max 2017 was, Official Toms Shoes Outlet therefore, no reebok running shoes other resource but to Moncler Outlet Online call in Original Ugg Boots the arms for Nike Roshe Run Sale a Cheap Nike Huarache redistribution, and to organize Nike Shox Cheap a body of Michael Kors Clearance native Uggs For Cheap troops from Cheap Michael Kors whom Michael Kors Outlet exclusion would be excluded. This measure created great Hugo Boss Sale alarm, among Doudoune Moncler Femme Pas Cher a party who had been so long dominant; and, if nike tn pas cher in its Nike Air Max Goedkoop accomplishment, Pandora Store any Pandora Store denomination Yeezy Men were excluded who felt a liberal nike mercurial soccer cleats sentiment Nike Shox discount Sale towards Toms Outlet Online the great Adidas Originals Stan Smith body Adidas Superstar of Moncler Outlet Store the people, there would have Nike Air Max Cheap been TOMS For Sale cause Timberland Outlet for just apprehension, but such does not appear Nike Shoes Discount Marketplace on Pandora Outlet the prada outlet record of the period. All test toms sale oaths were Air Max 90 abolished according to ADIDAS NMD SALE ON LINE the proclamation of the king, and all denominations, air force one pas cher without cheap uggs distinction, TOMS OUTLET were cheap uggs for women invited Scarpe Air Max to join louboutin heels the new organization. Nike Shoes Online The cheap nike air max Catholic people Moncler Jackets Discount Marketplace responded with promptitude and alacrity, Adidas Neo Discount Sale and an coach factory outlet online army of about Pandora Style Beads 8,000 men, billige nike sko was soon enrolled from the old ugg factory outlet royalist corps scattered Ugg Pas Cher En France through Cheap Michael Kors Tote Bag the country; a few Discount Ray Ban Sunglasses regiments Discount Christian Louboutin Shoes more Jordan Store sprang 23 IS BACK Store up from the Chaussure Nike Air Max Pas Cher remnants of Air Max Pas Cher the native toms shoes outlet clans, Adidas Superstar Sale Online and with these Hogan Outlet the Moncler Sale deputy felt able to execute the laws, and garrison a few of the Cheap Air Max most important military stations Hyperdunk 2014 in the kingdom.


On zapatillas running the other hand, scarpe nike the Toms Factory Outlet Protestant militia, feeling jealous hogan scontate that christian louboutin outlet men so long Cheap Nike Air Huarache outside Cheap True Religion Jeans the Michael Kors pale of Jordan Sneakers For Sale all law, should at once Boutique Ugg be endowed with suivre un envoi the high privilege of freemen, Air max levně shunned the organizations, official NHL jerseys and many Michael Kors Handbags Discount of their prominent Kobe Shoes Nike officers, retiring to TOMS SHOES OUTLET Holland, took service under the Prince Cheap Air Max Trainers of Orange, then Nike Air Max Sale conspiring for UGG BOOTS FOR WOMEN the overthrow of chaussure Nike homme their canada goose jacket outlet rightful sovereign.

- by ppst ppst on 6/13/2017
michael kors handbags, nike running, calvin klein outlet, coach factory outlet online, nike soccer shoes, toms outlet online, oakley sunglasses, nj jerseys, beats by dre headphones, giuseppe zanotti, oakley, tommy hilfiger, celine outlet, redskins jerseys, fivefingers, ray bans, coach outlet, barbour jackets, eagles jerseys, cheap oakley sunglasses, bcbg max, north face, chargers jerseys, cheap oakley, converse sneakers, dsquared2 outlet, coach factory online, michael kors outlet, nike factory, red bottom shoes, timberland outlet, oakley outlet, ipad mini cases, 49ers jerseys, jordans for sale, michael kors outlet online, panthers jerseys, hermes outlet, rolex, lunette ray ban, hermes birkin bag, longchamp, north face jackets, mcm bags, purses and handbags, adidas online shop, designer handbags, sacramento kings, adidas superstar, the north face, rolex watches, eyeglasses stores, new balance, air max 2014, oakley sunglasses outlet, nike free run, michael kors purses, michael kors, burberry sale, air jordan retro, ray ban outlet, indiana pacers jersey, burberry sale, retro jordans, dsquared2, prada outlet, purses and handbags, hogan, texans jerseys, seahawks jerseys, ed hardy clothing, longchamp handbags, michael kors, oakley, ralph lauren factory store, cheap oakley sunglasses,, mcm handbags, new balance outlet, babyliss flat iron, kate spade, rayban, michael kors bags, coach black friday, easton bats, abercrombie, converse shoes, pandora charms, tommy hilfiger outlet, tory burch handbags, giuseppe zanotti sneakers, north face backpacks, nike free 5.0, true religion outlet, burberry, ray ban outlet, timberland, nfl jerseys, mcm backpack, ray ban zonnebril, michael kors, nike fu?ballschuhe, oakley sunglasses, hogan mens shoes, burberry outlet online, hogan sito ufficiale, miami heat, coach outlet online, iphone 4s cases, polo ralph lauren, swarovski crystal, barbour jacket outlet, nike store, michael kors outlet online, michael kors v?skor, hollisterco, rayban, nike free, ferragamo, toms outlet,, cheap jerseys, barbour jackets, true religion outlet, steelers jerseys, nike roshe run, true religion jeans women, nike huarache, milwaukee bucks jersey, air max, toms shoes outlet, polo ralph lauren outlet online, ralph lauren black friday, adidas superstar, zapatillas nike, pandora bracelet, coach factory outlet online, cheap jerseys, coach outlet online, hugo boss outlet online, portland trail blazers jersey, michael kors handbags, oakley sunglasses outlet, chrome hearts rings, polo outlet online, replica rolex, ecco shoes outlet, toms shoes outlet, true religion, nfl jerseys, warriors jerseys, north face canada, salvatore ferragamo, buccaneers jerseys, pandora jewellery australia, nike air max, north face outlet, burberry outlet store, okc jerseys, michael jordan, easton bats, beats audio, nike air huarache, timberland boots, raiders jerseys, burberry outlet store, michael kors outlet, prada tracksuits, nba jerseys, tommy hilfiger online, mavericks jerseys, kate spade bags, chiefs jerseys, mcm handbags, versace outlet, polo ralph lauren outlet, oakley sunglasses, polo outlet store, nike air max, nike mercurial vapor, toms shoes, michael kors uk, salomon schuhe, longchamp handbags, ferragamo shoes, nike running shoes, suns jersey, longchamp outlet, giants jerseys, air max 90, bcbg max azria, 76ers jerseys, ray ban sunglasses, north face jackets, long champ, ray ban outlet, michael kors handbags, cheap jerseys, p90x3, falcons jerseys,, jordan shoes, hollister online, ralph lauren outlet online, true religion jeans outlet, adidas, los angeles lakers, ralph lauren, ray ban sunglasses, hollister clothing, polo ralph lauren, air jordan shoes, minnesota timberwolves jersey, red bottom,, ray-ban sunglasses,, adidas yeezy shoes, new balance, ralph lauren outlet, cheap nike shoes, stephen curry shoes, prada handbags, swarovski online shop, toms shoes outlet, nike blazers, wedding dress, pandora, lac jersey, montre homme, cheap basketball shoes, dre headphones, oakley sunglasses, ralph lauren polo, new balance, michael kors outlet online sale, juicy couture outlet, oakley frogskins, nike air force, nike air max, nike shoes, denver nuggets jerseys, soccer shoes, azcardinals jerseys, ralph lauren polo, ferragamo shoes, coach outlet store, burberry, pandora canada, longchamp outlet, rayban, oakley sunglasses cheap, tory burch sandals, uhren shop, prada shoes, burberry online shop, rolex watches, burberry outlet online, burberry, replica watches, kate spade, nike huarache, tommy hilfiger canada, jaguars jerseys, jimmy choo, reebok, christian louboutin shoes, pandora charms, longchamp taschen, adidas zx flux, asics, airmax, houston rockets, louboutin shoes, cheap michael kors, coach shop, cavaliers jersey, givenchy shoes outlet, cheap jerseys, tory burch, detroit pistons, ralph lauren, swarovski, mcm handbags, nike air max, packers jerseys, ray ban wayfarer, hilfiger online shop, converse outlet, vans shoes, hollister co, michael kors, polo ralph lauren, michael kors, nike tn, cheap ray ban, ralph lauren, titans jerseys, hollister, coach bags outlet, air max 2014, cheap nfl jerseys, air max, juicy couture, supra shoes, cheap oakley sunglasses, michael kors, toms shoes outlet, polo ralph, air max, air max thea, browns jerseys, burberry handbags outlet, bottega veneta, woolrich womens jackets, jordan retro, polo ralph lauren, hoodies store, northface, michael kors purses, michael kors outlet, hornets jersey, replica watches, celine outlet, michael kors australia, washington wizards jersey, longchamp, veneta, the north face outlet, bills jerseys, nike air max, marc by marc jacobs, lions jerseys, adidas shoes, burberry outlet online, adidas sneakers, spurs jerseys, hermes belt, michael kors bags, fendi, atlanta hawks jerseys, thomas sabo, celtics jersey, oakley sunglasses, timberland outlet, rams jerseys, handbags outlet, michael kors outlet, gafas oakley, swarovski crystal, christian louboutin uk, true religion jeans men, vans schuhe, chi hair, dre beats, the north face, chi flat iron, patriots jerseys, oakley sunglasses cheap, red bottom, barbour mens jackets, nike store, coach bags outlet, philipp plein clothing, replica watches, levis jeans, rolex replica, new orleans pelicans jersey, sunglasses for women, jordan shoes, puma online shop, nike running shoes, coach outlet usa, tory burch sandals, nike roshe run, louboutin, coach outlet, ray ban sunglasses outlet, converse chucks, nfl jerseys, burberry outlet store, cheap shoes, kate spade handbags, nike air max, coach usa, colts jerseys, prada, michael kors, burberry outlet, michael kors outlet online sale, toronto raptors jersey, oakley sunglasses, prada outlet, new balance shoes, valentino outlet, bulls jerseys, mizuno running shoes, nike roshe run, ray ban occhiali,, bengals jerseys, coach bags outlet, ray ban pas cher, cheap michael kors, nike roshe run, thomas sabo uk, coach purses outlet, omega watches, ralph lauren online shop, nba jerseys, cowboys jerseys, jimmy choo outlet, coach outlet sale, hilfiger outlet, ralph lauren outlet online, broncos jerseys, swarovski jewelry, polo outlet, lacoste shirts, ray bans, saints jerseys, cheap jerseys, ray ban wayfarer, supra footwear, barbour womens jackets, ny jersey, marc by marc jacobs, nike schoenen, soccer shoes outlet, nike store uk, philipp plein, swarovski australia, christian louboutin, nike shoes, memphis grizzlies jersey, michael kors uhren, mbt womens shoes, dolphins jerseys, jets jerseys, roshe run, michael kors handbags, ray ban uk, vikings jerseys, ravens jerseys, montblanc, orlando magic jersey, bears jerseys, utah jazz jersey, vans outlet, hollister co, oakley, armani outlet online, nike air max thea, puma shoes outlet, roshes, asics gel, coach outlet online, womens clothing, relojes, instyler ionic styler
- by wq on 6/15/2017
This saying does work for practically anything any consumer may well buy and it's true regarding lingerie. You will find sexy, sophisticated, seductive nighties and also lingerie with affordable pricing it doesn't have to hurt you wallet. nighties for sale
- by cxvwg on 6/16/2017
Leave a Comment:
Name :
Email : * will not be shown
Title :
Comment :

» Member access