Assalomu alaykum, yordam.uz saytimizga xush kelibsiz.
Bu saytda o`zingizni qiziqtirgan savollarga javob olishingiz va o`z sohangiz bo`yicha savollarga javob berishingiz mumkin. Bizning Oilamizga a'zo bo`lganingiz uchun chuqur Minnatdorchilik bildiramiz !!!

O'zimni saytim orqali Facebook va Instagramga auto post qilish kerak?

+2 ovoz
158 marta ko‘rilgan
so‘radi 02 iyul, 17 Iskandarcoder (153 bal)
Men saytim bor unga ma'lumot qo'ysam automatik facebook va instagramga post qilish kerak rss orqali facebookga qilgan edim unda zapier.com sayti orqali qilgan edim 100 ta postan keyin pullik bo'lib yopib qo'ydi.

rss orqali o'zim qilmoqchiman qilib ko'rganlar yo'nalish berib yuborilar

1 ta javob

0 ovoz
javob berdi 03 iyul, 17 SedBigDaddy (1,237 bal)

Agar siz PHPda ishlaydigan bo'lsangiz unda FacebookApi frameworkni ishlatin. Mana link;https://github.com/facebook/facebook-php-sdk.

buyerga qanaqa qilin ishlatishiz mumkinligi misol qilib keltirilgan. Faqat undan oldin facebook access_token , api_id va secret_key olishiz kerak facebookdan. 

<?php

// require Facebook PHP SDK

// see: https://developers.facebook.com/docs/php/gettingstarted/

require_once("/YOUR_PATH_TO/facebook_php_sdk/facebook.php");

// initialize Facebook class using your own Facebook App credentials

// see: https://developers.facebook.com/docs/php/gettingstarted/#install

$config = array();

$config['appId'] = 'YOUR_APP_ID';

$config['secret'] = 'YOUR_APP_SECRET';

$config['fileUpload'] = false; // optional

$fb = new Facebook($config);

// define your POST parameters (replace with your own values)

$params = array(

  "access_token" => "YOUR_ACCESS_TOKEN", // see: https://developers.facebook.com/docs/facebook-login/access-tokens/

  "message" => "Here is a blog post about auto posting on Facebook using PHP #php #facebook",

  "link" => "http://www.pontikis.net/blog/auto_post_on_facebook_with_php",

  "picture" => "http://i.imgur.com/lHkOsiH.png",

  "name" => "How to Auto Post on Facebook with PHP",

  "caption" => "www.pontikis.net",

  "description" => "Automatically post on Facebook with PHP using Facebook PHP SDK. How to create a Facebook app. Obtain and extend Facebook access tokens. Cron automation."

);

// post to Facebook

// see: https://developers.facebook.com/docs/reference/php/facebook-api/

try {

  $ret = $fb->api('/YOUR_FACEBOOK_ID/feed', 'POST', $params);

  echo 'Successfully posted to Facebook';

} catch(Exception $e) {

  echo $e->getMessage();

}

?>

Assalomu alaykum, yordam.uz saytimizga xush kelibsiz.

Bu saytda o`zingizni qiziqtirgan savollarga javob olishingiz va o`z sohangiz bo`yicha savollarga javob berishingiz mumkin.

Bizning Oilamizga a'zo bo`lganingiz uchun chuqur Minnatdorchilik bildiramiz !!!

Telegram kanal YordamUzRss

...