Programmatically Post Extended Ascii Character To Facebook Post?

Apr 27, 2011

I'm trying to post special characters to facebook feed, but the characters shown in the facebook post doesn't show as I intended.

/This code works as I intended, showing on facebook post
$facebook->api('/me/feed', 'POST', array('message' => $tmp));

//I expect the displayed text in facebook post will be 'вн' but it shows strange characters instead
$facebook->api('/me/feed', 'POST', array('message' => substr($tmp, 1, 2)));

how to tackle this problem?

ADVERTISEMENT

Post A Link In Facebook ( With Post Method Graph Api )?

Mar 17, 2011

How can I add a link in the description (or in the 'caption') of a POST?

I tried :

$attachment = array (
'name' => $title,
'link' => $link,
'description' => "www.google.it",
'caption' => "www.google.it"
);
$this->facebook->api("/$uid/feed", 'POST', $attachment);

the links are published as texts, not as clickable links. I use the /PROFILE_ID/feed method and Stream post URL security in my application security settings is disabled

View 2 Replies View Related

Facebook Post-to-Wall Script - Post As Page?

Mar 31, 2011

I want to post to a Facebook page for my site using an automated PHP script. However, I came across a problem - the script will post as the user logged in on that computer. I want the script to post to the wall as the page entity. The previous questions on this site don't really help me, as I'm pretty new at this and have no idea how to manage things such as permissions and such (so just telling me to add "X permission" doesn't really help me...as I have no idea WHERE to even add said line[s] of code!) Facebook's documentation is hard to navigate, with most Google Answers tutorials involving previous versions of the Facebook API). My code has pretty much been copy-pasted from the tutorials I have come across. How do I allow the PHP script to post to the page AS the page?

View 1 Replies View Related

Post On Facebook Page Wall As Facebook Admin Through Facebook Api?

Jun 9, 2010

I would like to post feed to facebook page wall as page admin. I can publish post to facebook wall with publish_stream from fb php api, but it is just as a normal facebook user. May I know how can I do likewise as a page admin (meaning that the post publish from facebook page and not from other fb user on the page wall)?

View 2 Replies View Related

Facebook "Post To Wall" Functionality Does Not Post The Pictures ?

Feb 11, 2011

I have a Facebook Application Profile Page that I would like to create a custom script to perform wall posts on its wall.The reason I need this is because the existing Facebook "Post to Wall" functionality does not post the pictures I want it to.What I need is a PHP webpage that allows me to do this:

Inputs:
App ID (App ID of the Facebook App that I am looking to post to wall)
API Key
App Secret
URL of Image to post
Message Body
URL of link

Output: the post is made to the wall of the Facebook App Profile page, so that anyone who has "liked" the page can see it.

View 1 Replies View Related

Replace Extended Ascii Characters

Mar 22, 2007

I've some text with some extended ascii characters like ¿ or ¡ and I wanna replace these characters for blanks, but when I use the function str_replace, it returns an invalid string, so I think that php cannot detect these kind of characters and of course, it cannot replace them. I've already tried to use mb_ereg_replace, but it doesn´t work.

View 2 Replies View Related

Build A Batch Job To Post A Wall-to-wall Facebook Post?

Jul 5, 2011

I have written a facebook app. I want to write a batch job using php to post a wall-to-wall post to user A and his friend B (B is not the app user) such that the post is a wall-to-wall post as user A-> B.

I have tried the graph feed api but can only post to user A wall and say I have no right to post to B's wall. In fact I found some apps have done similar things and i guess it is a batch job (as the post is released when I am not using the app). As it is a batch job, i dont have user's access_token. Is it possible to do it?

View 1 Replies View Related

Post On Facebook Application User's Facebook Feed Using CURL?

Jun 11, 2011

I have made a snake game using javascript and HTML5 Canvas element. It can be found at [URL]... I have attained permissions and authorized the app for publish_feed or something using the Facebook Developer Documentation but the problem I am facing is while posting the player's score on his wall.

View 1 Replies View Related

Decode C++ Encoded ASCII Extended Values?

Oct 12, 2010

I have a little question regarding ASCII Codes. Is it possible to to find out what type of encoding is used in C++ for ASCII extended values?

I want to try and find a way to decode a game animation source file without having to de-compile the game source which is not allowed. I simply want to understand whats going on in the file and maybe modify it slightly so I can make some small changes. The extension used is .pma and the engine I believe is "Prism3D". I can open the file with a hex editor and an example might be :

HEX: 7C 2E C8 40 EC 15 22 which gives me some ASCII Extended values that are not very readable.

View 1 Replies View Related

Post Facebook Wall Automatically With Facebook API (only With Userid)

Feb 26, 2011

using fconnect user have authenticated and i have saved their userid to my database.

When i try to publish to their wall is redirecting to Facebook login page . If user haven't logged in.

$status = $facebook->api('/MY_USER_ID/feed', 'POST',
array('message' => 'This post came from my app.'));

some web app are posting status to my wall without even i havn't logged into facebook.

View 2 Replies View Related

Post HTML Content In Facebook Wall Using Facebook Api?

Sep 10, 2010

How to post HTML content in facebook wall using facebook api in php

I have used below codes but not working

$result = $facebook->api('/me/feed/','post',array( 'message' => '<h1>This is my demo Face book application!</h1>'));

And I used as below code using php concatenate the HTML string

$result = $facebook->api('/me/feed/','post',array( 'message' => 'This is my demo Facebook application!' . $htmlStr));

but not working and getting below error

OAuthException: (#1) An unknown error occurred

View 1 Replies View Related

Post On Facebook Application User's Facebook Feed?

Jun 10, 2011

I have made a snake game using javascript and HTML5 Canvas element. It can be found at [URL].... I have attained permissions and authorized the app for publish_feed or something using the Facebook Developer Documentation but the problem I am facing is while posting the player's score on his wall. Following the documentation given by FB, you get a Dialog that asks the user before publishing and he can edit the Post. In a game, if I want to post the player's score, I cannot let him edit his petty 100 point score to a 100,000 point score. I have seen many games made on facebook that let the application post the Score of the Player by just a press of a button

View 2 Replies View Related

Converting Extended ASCII Characters (128-159) Into HTML Entities?

Mar 17, 2010

How does one convert extended ASCII characters, codes 128+, into HTML entities? I tried the following:

PHP Code:

for($i=0;$i<=255;$i++){
echo"$i:".htmlentities(chr($i))."<br/>
";
}

However for character codes 128 to 159, I got funny characters as output instead of an HTML entity.

View 4 Replies View Related

Editing A Post In Character Replacing. Is This Possible In PHP?

Jul 17, 2005

I want to be able to strip any character that is does not appear in
the following list from a text string:

$LegalChars=""!#$%&'()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~";

And conververt the following:
to &pound;
to &euro;
to '
' to '
" to "
" to "
to &bull;

So, if the input string was:

$Input = "Andrs says "...the is very useful"";

The out at is generated is:

$Output = "Andres says "...the &euro; is very useful"";

(I've marked the changes in red above)

View 2 Replies View Related

Character Limit On POST Vars?

May 22, 2009

Is there a maximum character limit on POST vars? I know there's a limit on the size that you can configure in php.ini but just wondering whether there's an actual limit to the string length?

View 4 Replies View Related

Restrict User Not To Post More Character?

Oct 9, 2009

i have a text box i mean textarea(<textarea>

View 4 Replies View Related

Post To Facebook Wall ?

Apr 7, 2011

i have created an application where user can post message to their own wall !
this is my code

try {
$facebook = new Facebook(FB_APIKEY, FB_SECRET);
$facebook->api_client->session_key = FB_SESSION;[code]....

it returns an error Fatal error: Call to undefined method stdClass::stream_publish() in /home/webshine/public_html/tutorials/fb/example.php on line 149

View 1 Replies View Related

Post On Facebook And Twitter

May 2, 2011

I have below problem in PHP development project. I have made an application in PHP for posting on social media sites like facebook, twitter and linked-in. I made application on facebook, twitter and linked-in and assigned there IDs to my application but what happens is that post works sometime and it does not work sometime. I have to clear my cookies to get the post sometimes. How do I maintain my session to get this thing done or I have to find some other methods to do this. Anybody have face this situation before? Interface to Facebook, Twitter and Linked-in does not work well with my application.

View 1 Replies View Related

Facebook Post On Page With SDK?

Oct 24, 2010

I'd like to post on page - throught my site.Also none of google results gave mi answer.

function post_facebook($data=null){
$result = "";
require_once (ROOT. "/apps/configuration/models/ConfigurationItem.php");
require_once (ROOT . "/components/facebook/facebook.php");

[code]...

I want to allow user to login on specified FB account (this with page), and then send.App settings allow only this account to post, so it should be ok.But isn't.When I log out FB account, session still exists, but returns exception.

View 1 Replies View Related

Facebook Post From Through Graph Api?

May 22, 2011

i use this code to authorize me with my apppublish_stream,offline_access,manage_pages&method=post&redirect_uri=http://www.site.com/indexold.htmli get the access token and i use this to do the Impersonation trickthe post is successful but it is shown as i have posted it . i want the profile picture of the group to be shown next to the post is this possible? instead mine is shown next to the post!

View 1 Replies View Related

Use The Facebook SDK To Post From Group?

Apr 26, 2011

I'd like to use the Facebook PHP SDK to post on a user's wall FROM a group (i.e. not as a Status Update,from the user via an external app, but from a group via an external app). I'm having a difficult time finding docs on the topic, and would like a code example as well as any information regardinI've tried using the 'from' parameter, like this:

$attachment = array(
[code]....

View 1 Replies View Related

Tagging People In A Facebook Post?

Mar 31, 2011

If you press @ when typing a status on facebook.com, you can type a friends' name and have him tagged in your facebook status. How can friends be tagged when making a wall post using facebook connect?

View 2 Replies View Related

Facebook And Twitter URL To Post Status?

Jul 7, 2010

Is there a method that can post a status to Facebook or Twitter. Twitter has this: [URL]

View 3 Replies View Related

Can't Checkin To Facebook Places By Post To Api?

Jan 15, 2011

I am trying to build an app where I let my registered user be able to check in to places on Facebook Places. I however for some reason can't seem to make this work. I assumed this is possible with the Api as write functionality has been added to it, but I couldn't find an clear explanation on the web. this is what I currently have, after I have asked the user for permission to publish checkins and for user_checkins.

<?php
require("src/facebook.php");
$facebook = new Facebook(array(
'appId' => 'xxxxxxxxx',
'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'cookie' => true
));
code....

The code works when I change it 'checkins' to 'feed'. Is there something wrong with my code or am I trying to do somethign that isn't possible (or do it the wrong way).

I already spent quite a significant amount of time trying to fix this, but I just can't seem to make it work.

View 1 Replies View Related

Twitter Msg Automatically Post To Facebook?

Jun 22, 2010

Am not sure there is a feature like , automatically update twitter tweet in to facebook , May i know is there any like automatic update , For Should i use API or CURL , or anything else ,

just i find one thread from google link text Is there any thing else then this thread...

View 2 Replies View Related

Post To Facebook From A Custom Textarea?

May 17, 2011

i am using a twitter script to post messages to the twitter wall from a html form see here:

<form name="csp_post" action="/test.php" method="post" >
<textarea name="text" id="text" rows="3" cols="64" ></textarea>
<input type="hidden" name="action" value="post">
<?php session_start();
include 'twitter-oauth/lib/EpiCurl.php';
include 'twitter-oauth/lib/EpiOAuth.php';
include 'twitter-oauth/lib/EpiTwitter.php';
include 'twitter-oauth/lib/secret.php';

[Code]....

so the twitter will grab whatever i post into the text area and post it onto the wall. i would like to do the same with facebook. I know there are applications that can do the same thing, but the ones i found uses a different textarea, and i want to use the one i have already.

View 1 Replies View Related

Post Status Via Facebook's Graph Api

May 17, 2010

In PHP, I am trying to post a status to our Facebook fan page using the graph api, despite following the intructions facebook give, the following code does not seem to update the status. Here is the code;

[code]...

Does anyone know why this code is not working? The access_token is correct.

View 3 Replies View Related

C# - Post Topic On Facebook Groups

May 10, 2010

I would like to know whether it is possible to post "topics for Discussion" on Facebook Groups by using either the old Rest API or Graph API? I somehow was unable to find any function within the API which would help me to do so.

View 2 Replies View Related

Facebook - Post Link To Fan Page

Feb 8, 2010

I have a web application that allows a user to publish a small blurb when one of their articles goes live on their site. Right now I am able to post to the user's wall using a session_key I saved in a table but I can't publish the same link on a fan page (I have the rights and IDs of the pages I need). Essentially I want the functionality of: [URL]... but for a page instead. So far all I can find utilizes the steam.publish function which isn't quite the same thing. I'm hoping that there's a hidden parameter (like a target_id) in the link.post function that I've missed (since the facebook wiki is horrible).

View 1 Replies View Related

Post To Facebook Fan Page Using It And Graph API?

Jan 28, 2011

i like to post to my FB Fan Page, Some Content using cron job in PHP,How can i do that?

View 1 Replies View Related

Referrer URL From Facebook Form POST?

Feb 5, 2011

I'm posting a form from a Facebook application to a form processor on my web server and then redirecting to a page. I want to ensure nothing else can post to this form so was looking to restrict it to only receive input from the Facebook app. The problem I'm coming up against is when I try to find the $_SERVER['HTTP_REFERER'] it isn't passed from Facebook. The value isn't even null, it's not even shown. Is there anything else I could possibly use to lock down this form processor?

View 1 Replies View Related

Post Image To Facebook Events?

Mar 2, 2011

This is my code,

$event_info['name'] = $name2;
$event_info['category'] = 1;
$event_info['privacy_type'] = 'OPEN';
$event_info['subcategory'] = 1;
$event_info['description'] = $description_new; //description for event
//$event_info['host'] = $desc; //description for event
//$event_info['host'] = 'You';
[Code]...

Everything is post except image , I want create event with event image.

View 1 Replies View Related

Delete Facebook Post With Graph API?

May 9, 2011

I'm using the following to post a message on my Facebook page:

$attachment = array(
'access_token' => $access_token,
'message' => 'This is a test Message 4:',
'name' => "This is a test Name 4",
'description' => "This is a test Description 4"

[Code]...

To test I set this up in a simple form with submit button, POSTing the data to https://graph.facebook.com/COMMENT_ID?method=delete (substituting COMMENT_ID fro the 11111111111_111111111111 id returned from the original publish call. This returns "This API call requires a valid app_id".

View 2 Replies View Related

Auto Post Script To Facebook

May 19, 2011

I am making a backend for a client in php/mysql. I am almost done, now they want a couple of input fields for facebook and twitter so they can autopost to facebook and twitter. The backend allows them to post articles, images etc.. to the main site, when they do that, they now want(when they hit send) for that info to be submitted to facebook and twitter as well. I just started some research and see that facebook has a php sdk is that a good place to start? I just don't know where to begin with this and need some advice.

View 8 Replies View Related

Post A Picture To A Facebook Wall?

Dec 22, 2010

I have t function to post a link to a Facebook-wall. This works like it should, only the image I try to attach to it doesn't show up on the page.Do I have to do something special to post an image?

public function shareAction()
{
[code].........

View 1 Replies View Related

Post To Twitter And Update Facebook Status?

Jul 15, 2011

I'm looking for the most simple PHP code possible to include a form on my site's (bespoke) CMS that will update my Facebook status and Twitter feed in on click.Are there any good examples of this as I can't seem to find a quick all in one solution.

View 1 Replies View Related

Post To Facebook Wall Once I've Got The Access Token?

Apr 6, 2011

I'm making a facebook app and have got as far as getting the user to allow my apps permissions, which then generates a code. Then using this code to get an access token. So I now have a variable in my PHP script containing the access token. Now how do I use this to post to the users wall?

View 2 Replies View Related

Post Website Contents Into A Facebook Wall?

May 16, 2011

On this website each user as an account. I wish to allow, each registered user to publish something into their own facebook page. On this website, each user as an account. I wish to allow each registered user to publish something into one specific facebook page (created by us);

*Additional notes regarding possibility two: *

We have a web application. http://www.mysite.com
We have that web application connected with our facebook account.

Now, should we create a facebook application ? Or can we "simple" use the API to publish something on our facebook wall ?

View 1 Replies View Related

Post To The Wall On A Facebook Page (not Profile)?

Mar 27, 2009

I have a blog site written in php and it posts new blog posts to twitter and a blog ping automatically under the hood using simple http post requests passed using php curl.I have a facebook page for the blog site and want the updates to be posted to the wall on the page, is there a simple way to do this? What I really want is a url and set of params to parcel up as an http post request.Note that this is to post to the wall on a new style page not a profile.

View 6 Replies View Related

Facebook Graph Api - Post To Facebookpage As Admin Via API (SDK)?

Dec 8, 2010

I know how to make a post to a Facebook page via the API using PHP SDK, that is done like this:

$facebook->api('/xxxxxxxxxxx/feed', 'post', array('message'=> 'Hello world!', 'cb' => ''));
Where xxxxxxxxxxx is page id ;)

But doing that, I post to that page as me, Jamie, and not as the Page itself (admin). So how do I post as Admin/Page instead of myself? First of all you need to make sure you have access to manage pages for user, ex:

<fb:login-button autologoutlink="true" perms="manage_pages"></fb:login-button>

Now you also gets a special token for every page user have access to once you get them. PHP SDK Example:

[Code......]

View 1 Replies View Related

Share Title / Image And Post In Facebook?

Jun 2, 2011

I am sharing title, image and description of post in facebook using following code

<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

Once i share post or link to facebook then it will take title and description. But when I share the same post or link to facebook with other title and image, the title and image do not change.

View 1 Replies View Related

Post To Multiple User Profiles From A Facebook App?

Sep 28, 2010

I am developing a web application that I want to integrate with both Twitter and Facebook. At a certain time, messages will automatically be published on every user's feed, for both their Twitter and Facebook accounts.

I am currently working on the Facebook component. I know that in order to post to a user's feed on Facebook they must grant my app the publish_stream permission. Suppose I have a database of many users who have granted this permission. I want to publish a message on all of their feeds (visible to their friends). do I need to go through the database one-by-one and do an API call to post the message for each of them? This is the only way I can think of at the moment to do this, and it seems excessive to do this especially as the database gets larger and larger.

View 1 Replies View Related

Post Custom Message To Facebook Wall?

May 31, 2011

I'm working on a script for post a message on a visitors wall. The visitor can enter there own message in a form en then send it to facebook.

index.php:

<form name="form" method="post" action="wall.php">
<textarea name="t_update" cols="50" rows="5" id="t_update" >message</textarea><br>
<input type="submit" name="Submit" value="Post To Your facebook Account!">
</form>

This sends "t_update" to "wall.php". The wall.php script is working fine I tested it with static text. but when I try to insert the "t_update" text into the var $APP_MSG it's empty when send to facebook. This is the complete wall.php script.

wall.php:

<?php
/** FB APP DATA **/
$FB_APPID = "Facebook app id";
$FB_SECRET = "Facebook secret code";

[Code]....

View 2 Replies View Related

Post Event To Application Wall On Facebook

Feb 20, 2010

the basic idea is, I created a application of which users will become fans and get the latest and greatest events from.
For that I will need to post a event to the wall page of the application itself. Creating a event is not a problem (I'm using PHP5):

$event_id=$facebook->api_client->events_create(json_encode($FB));

But I couldn't find any reference on how to publish a wall entry for that. This would only show up in the "event" tab I tried using stream_publish - which works fine, but again I couldn't find a way to create a event.

View 3 Replies View Related

Post Status When User First Logs In With Facebook?

Nov 19, 2010

I have now managed to get a status posted when a user clicks a link. I would now like a status to be posted when they first login with Facebook and accept the permissions.Please help! I am using this code for the login button:

<fb:login-button ></fb:login-button>

Be specific with me I'm new to the Facebook Connect.

View 2 Replies View Related

ADVERTISEMENT