Alhazred's Profile User Rating: -----

Reputation: 9 Worker
Group:
Active Members
Active Posts:
191 (0.06 per day)
Joined:
25-July 07
Profile Views:
6,380
Last Active:
User is offline Jul 12 2015 10:28 AM
Currently:
Offline

Previous Fields

Country:
IT
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Ford
Dream Kudos:
0

Latest Visitors

Icon   Alhazred has not set their status

Posts I've Made

  1. In Topic: Looking for a cloud storage which allows to syncronize any folder

    Posted 11 Jul 2015

    I'm an employee, that's not my own business and the syncronization would be something only useful to me.
    Before to pay or ask my boss to pay for some tool, I'd rather look into something free, expecially because free solutions do exist (Cubby in example).
  2. In Topic: What do I need to automatically post on my FB page from my website?

    Posted 18 Jun 2015

    Yes, I was changing my mind about that path going on doing searches on internet, now I've got a problem sending the link, I get this message:
    "Exception occured, code: 2500 with message: An active access token must be used to query information about the current user."

    This is the code at the moment
    FacebookSession::setDefaultApplication($app_id, $app_secret);
    
    $session = FacebookSession::newAppSession();
    
    try {
        $session->validate();
    } catch (FacebookRequestException $ex) {
        // Session not valid, Graph API returned an exception with the reason.
        echo $ex->getMessage();
    } catch (\Exception $ex) {
        // Graph API returned info, but it may mismatch the current app or have expired.
        echo $ex->getMessage();
    }
    
    if($session)
    {
        try {
            $response = (new FacebookRequest(
                $session, 'POST', '/me/feed', array(
                    'link' => 'www.mysite.it',
                    'message' => 'some text'
                )
            ))->execute()->getGraphObject();
            echo "Posted with id: " . $response->getProperty('id');
        } catch(FacebookRequestException $e) {
            // error sending data to FB
            echo "Exception occured, code: " . $e->getCode() . " with message: " . $e->getMessage();
        }
    }
    
    

    Given the error message, the session is correctly created and validated, the problem is on the execute() method, how do I fix it?
  3. In Topic: What do I need to automatically post on my FB page from my website?

    Posted 18 Jun 2015

    Thank you for the links, I think I've got how to do.
    I've got only one doubt: into the example code I read
    $response = (new FacebookRequest(
        $session, 'POST', '/me/feed', array(
            'link' => 'www.example.com',
            'message' => 'User provided message'
        )...
    )
    
    

    I suppose that '/me/feed' is only an example, which link should I put there?
  4. In Topic: Regexp to remove empty paragraphs

    Posted 29 May 2015

    Thank you, I only had to change your pattern to catch the new lines between two paragraphs
    $pattern = "/(?s)(<p>\s*<\/p>\s*)+/i";
  5. In Topic: [Symfony2] How should I set it up on a shared server?

    Posted 27 Mar 2015

    No, I try to explain better.
    The vhost is on my PC and it works, it is posted only to show the settings needed to have Symfony working (the servername is just the name I set on my machine because I also have other projects).

    The .htaccess is what I've tried to put on the online website's root to emulate the vhost settings, and that doesn't work properly, I can access to the home page, but any other URL doesn't work, I have a page not found message.

My Information

Member Title:
D.I.C Head
Age:
38 years old
Birthday:
September 30, 1976
Gender:
Location:
Italy
Programming Languages:
C, Java, php

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Friends

Alhazred hasn't added any friends yet.

Comments

Page 1 of 1
  1. Photo

    jesicalbaby Icon

    16 Sep 2013 - 14:34
    Hello
    My name is Miss jesical,
    i saw your profile today
    and,i fill more interest to contact you ,
    i will like you to please send me
    an email via (jesicalduncan22@yahoo.com)
    for me to send you my picture
    jesicalduncan22@yahoo.com
Page 1 of 1