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?

View 1 Replies


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

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' => "",
'caption' => ""
$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

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

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 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

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

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

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

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:

App ID (App ID of the Facebook App that I am looking to post to wall)
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

Replace Extended Ascii Characters

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

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

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

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

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

Decode C++ Encoded ASCII Extended Values?

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

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

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

Post HTML Content In Facebook Wall Using Facebook Api?

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

Post On Facebook Application User's Facebook Feed?

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

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

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

PHP Code:

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

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

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


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

Character Limit On POST Vars?

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

Restrict User Not To Post More Character?

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

View 4 Replies

Post To Facebook Wall ?

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

Post On Facebook And Twitter

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

Facebook Post On Page With SDK?

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");


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

Facebook Post From Through Graph Api?

i use this code to authorize me with my apppublish_stream,offline_access,manage_pages&method=post&redirect_uri= 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

Use The Facebook SDK To Post From Group?

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(

View 1 Replies

Tagging People In A Facebook Post?

If you press @ when typing a status on, 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

Facebook And Twitter URL To Post Status?

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

View 3 Replies

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

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.

$facebook = new Facebook(array(
'appId' => 'xxxxxxxxx',
'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'cookie' => true

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

Twitter Msg Automatically Post To Facebook?

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

Post To Facebook From A Custom Textarea?

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';


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

Copyrights 2005-15, All rights reserved