facebook – log in and posting to own wall automatically through cron

I'm searching for a solution where a php script called by a cron job is logging me in to facebook and posting a message to my own wall without any browser needed.

With a facebook application in combination with the facebook-php-sdk it's easy to do this job. But therefor I have to be logged in to my profile which I’m not when the cron runs.

When I'm using cURL I must do this through a browser to post the message on my wall successfully. So when cron calls the php script and cURL logs me in and calls the application to post the message, link or picture nothing happens.

All in all I nearly have the same problem like this post described. In this post they say that it's not allowed to do this. But is it possible? And what will happen if facebook is noticing that?

-------------Problems Reply------------

Use Facebook SDK for PHP from developers.facebook.com/docs/php/gettingstarted/4.0.0 . Extend short-lived access token to Long Lived access token. Save the token and use the token to log into his account when you want to login, and post to your wall. Check FB documentation: developers.facebook.com/docs/php/FacebookSession/4.0.0 – jones just now edit
Read the documentation...

Category:php Views:3 Time:2018-04-15

Related post

  • facebook user authentication and post on user wall 2012-03-15

    I followed this video tutorial but i am stuck.When i click on the login link the browser keeps loading and then nothing happens and still the login page is in front of me.It always return 0 in $user_id.It showed me the facebook authentication page 1

  • How to make users select their friends and post on their wall in facebook 2011-08-03

    I know this has been asked several times before, but Facebook changes its api often so comes the necessity to ask this question again. I have an iframe application, how to make users select their friends and post on their wall the message which comes

  • PHP, Twitter and Facebook posting pre-populated form content posting to own wall 2011-11-16

    Not sure if this has been done before, but did some searching and could not find anything. I would like to have an input box on my webpage, which has some pre-populated text and when a user clicks submit the text is tweeted on their own wall, this wo

  • programmatically login to facebook and post to page (wall) 2011-11-03

    I have a website, and I need it to post status updates to a Facebook Page from time to time. Using my personal Facebook account, I created an App, and a Page. So far, I've been able to programmatically post to my Page's Wall, by adding this code to m

  • Grabbing permission from facebook user and posting to their wall 2011-11-03

    Further to Post to users wall upon facebook app submission (my old question), I have came up with the following code however it doesn't seem to be working?? I thought best to open a new question as it is a new question. What am I doing wrong? Also, w

  • Facebook API: How to post to group wall without login? 2011-08-25

    I want to post to my own group(I'm admin) wall a text but without to login first because it should be done automatically. How could I do that? Or is it even possible? I'm using codeigniter (php) and javascript. --------------Solutions------------- Su

  • Posting to user's facebook news feed without posting to his wall 2011-09-02

    I'm tring to send customized news to my users via Facebook. I've tried posting private posts to their walls, so they show up on their news feed, but people got upset by the new posts on their wall (even though noone else can see them) Is there a way

  • Post to own wall via Graph API, but make only visible to friends in same geographical area 2011-11-26

    Since the introduction of the smartlists feature, Facebook automatically generates a list of people in your geographical area. For me, this list is called "Berlin area". When you manually post to your wall and restrict the receivers to this list, the

  • Collect Email With My Application And Post On User Wall At The Same Time With An Auth Dialog 2012-01-13

    Please how can I collect email or build my email with aweber by using my application which can also post on user wall after the accept share it? Like when I used your login button here, I had to allow access but I want more ( by posting on wall and c

  • Facebook select friends and post UIDs to custom URL 2010-06-08

    I'm building a facebook connect application, and here's the specific use case I'm trying to solve (using the Facebook Connect Javascript toolkit - http://github.com/facebook/connect-js) There is a link on a page that a user clicks to "invite friends"

  • ASP.NET/VB-users log on and see the own data only? 2011-11-19

    I'm attempting to make a system that stores employees details...name address etc. I would like the users to be able to log on, see and change their own details only. Is this possible is asp.net and if so how? I'm really new at this so if you could ke

  • Facebook, PHP button to post to my wall? 2011-12-14

    For my Facebook application, I am trying to add a submit button to post something to my wall. I try to call the function with $_POST['submit'], but it doesn't work. I have also tried to call the php code as function. Submit: <input type="submit" n

  • How to capture screen application to .jpg and post it on wall 2012-01-28

    now i'm making application for facebook with javascript.but I don't know method to change my screen application to .jpg file. So,I would like to know how to change my application and post it Thank you for your help. --------------Solutions-----------

  • Does Windows XP log web sites I've visited, logged in and posted messages? 2013-12-25

    I've heard Internet Explorer's History folder contains a list of links to the websites and Windows shell locations I have visited recently. Is there any other folder or log file that I could check out if I have logged in certain site and posted artic

  • post to subscribers' walls automatically 2011-09-07

    I need a wordpress plugin to automatically post every article to a facebook fan page I own. ==old question== In my wordpress blog I'd like a "subscribe with facebook" button that lets a user subscribe to my posts, so that they appear on their profile

  • Facebook Connect for iPhone - want to log in and post in one step 2009-10-16

    This is a repost from the Facebook developer forums, where no-one has responded yet. This is what I would like to do: user touches Connect button code retrieves session and attempts to resume if session does not resume, pop up login dialog pop up fee

  • Facebook API: How to post to own application wall without login 2011-03-05

    I want to post to my own application wall a text with a script but without to login first because it should be done automatically. How could I do that? I tried already: $fb = new Facebook(array( 'appId' => 'appid', 'secret' => 'appsecret', 'coo

  • Facebook Like button that posts to page wall as well? 2011-05-06

    I have a online shop. On the home page there are products, with a like button. When a person clicks on the button, it goes to their profile and it says that they liked it. However, I also want when the user clicks like, that it is posted to my BUSINE

  • Authenticating a specific user via the graph api, and posting to their wall 2011-05-09

    I am trying to figure out if it would be possible to authenticate a specific user, with said users username and password using the graph api, and the posting a message to their wall. Is this a possibility with the graph api? Thanx in advance! -------

  • Facebook javascript: display more posts on the wall 2011-07-07

    I am creating a Chrome extension which has a javascript modifying facebook page layout, how can I make the wall displaying older posts? I've tried injecting a script into the page and calling the function UIIntentionalStream.instance.loadOlderPosts()

  • Facebook like callback, and post it to target to like 2011-07-18

    when i'm looking at the html source, i look this javascript code <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <script > FB.init({ status: true, cookie: true, xfbml: true }); var username= "gun"; var timen

  • Facebook graph API and post-remove callback with the new Graph SDKs (PHP) 2010-06-24

    I can't find any documentation in the new Facebook Graph/Authorization API documentation about how to handle post-remove callbacks from the Facebook server. With the REST API, this page described how to handle this. Any ideas on how to do this with t

  • Facebook iOS Authorise and Post Without Dialog? 2011-05-26

    Im just starting out with the Facebook SDK for iOS and checked out the documentation and other help thoroughly but can't be successful. I have started a new view based app and authorised just as recommended in the docs. Everytime I start the app its

  • Facebook iOS-sdk and posting a local (UI)Image 2011-08-25

    I have successfully used photos.upload api to upload local images to the users album. How to upload local images with formatted links? The photos.upload does support adding the caption text, but I can't embed html-links to the caption. Is there a way

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.099 (s). 11 q(s)