Drupal7 Feeds module Facebook feed truncated to 80 characters - facebook

In Drupal 7, My Facebook feed is displayed in a View. The mapping is set for title to title and body to body. But the Facebook post is getting truncated at80 characters followed by (...) example: EmC’s Direct-Hire Construction team was recently honored for achieving more tha...
i mapped a bunch of items to the Body but still doesn't show the whole paragraph? The view and CCk type is set up to display the full node and not the teaser. Should I use a Parser or add a embed field? My Flickr feed is doing the same thing. I am using the Drupal 7 and the Feeds module. My Youtube and Twitter feeds work fine.

open your database and check body fields of this content type - if it consist from 80 char, the problem in creating field from feed (maybe that's some nuance of facebook api).
if body consists of more than 80 char - you have the problem with views setting, maybe it's adjusted to show body field like teaser or limited to 80 characters.

Related

Link query strings get cut off

I'm not aware of link designing strategies, so I am not sure why my link gets chopped off when someone clicks on from sources like Facebook etc.
I have a 'share feature' on my platform, which lets a user create a link to their listing and share it with people.
The link I generate for the listing in my backend has parameters, which reads the listing id and the type and displays content over HTML
Here's a sample link for a listing
https://www.fayvors.com/Share.html?hash=5eccccaa-7b8d-42bd-af8c-08d50da0c867?type=lessons/
However, when I share the link on facebook and click it, the browser redirects to a link that's cut off
https://www.fayvors.com/Share.html?hash=5eccccaa-7b8d-42bd-af8c-08d50da0c867%3Ftype%3Dlessons
I'm not aware of link designing principles, so I'm a bit lost here!
Thanks!
Your URL contains “special characters” (like a second question mark inside the query string), but you neglected to apply proper URL encoding when putting this URL as a parameter value into another URL:
javascript:window.location.replace('https://www.facebook.com/sharer/sharer.php?u='+window.location)
Use encodeURIComponent on the value you are concatenating to the sharer URL here.

Confluence REST API - expanding page body when retrieving page by title

I'm accessing a Confluence page by its title using the latest REST API. To retrieve more details on certain fields, I'm passing the expand parameter (see Confluence Docs):
https://xyz.atlassian.net/wiki/rest/api/content/?title=Architecture&spaceKey=XX&expand=body
or
https://xyz.atlassian.net/wiki/rest/api/content/?title=Architecture&spaceKey=XX&expand=body.view
But the results don't hold any information on the found page body.
Note, this is working fine with requests using a page id only. Using the title to retrieve the page is threaded similar to search results, hence the expand feature seems not to work the same. According to the documentation it should work as per my example. Am I missing something?
You need to specify which type of "body" you want in the expansion parameter.
In your case, something like this:
https://xyz.atlassian.net/wiki/rest/api/content/?title=Architecture&spaceKey=XX&expand=body.view
https://xyz.atlassian.net/wiki/rest/api/content/?title=Architecture&spaceKey=XX&expand=body.export_view
Possible values are:
editor
export_view
anonymous_export_view
view
storage

How to tweet a message containing a custom URL to Twitter?

Whenever I try to tweet a message containing a custom URL to Twitter using oAuth, the message is posted as plain text including all HTML tags
For example I want show the message as:
this is mysample tweet.
and this is my link: my web address
Twitter doesn't support rich text, it is plain text only. You especially can't set the link text for a URL. The only possibility which could come close is to use the cards feature for supported clients.

How to retrieve page with special characters in page name

Trying to retrieve general page info using the Facebook graph API using an Jquery/Ajax call. This works flawlessly until I request a page containing special characters or dashes in it's name.
It seems like the special characters are ANSI encoded during the ajax request so the name is malformed and the page cannot be found. I can't find a way though to obviate this.
Example url: https://graph.facebook.com/Musée-de-la-Photographie-Charleroi?access_token=[my_access_token]
Can anybody help me out?
I think you should test different values in contentType parameter. It allows to set char encoding.
Take a look here:
http://api.jquery.com/jQuery.ajax/
It seems like the special characters are ANSI encoded during the ajax request so the name is malformed and the page cannot be found.
No, I don’t think that’s the problem.
As you can see from https://developers.facebook.com/tools/explorer?method=GET&path=18521449287, this page does not have a username set yet – and since it is not accessible via just www.facebook.com/Musée-de-la-Photographie-Charleroi, but only via www.facebook.com/pages/Musée-de-la-Photographie-Charleroi/18521449287 including the page id.
And accordingly, info about the page on the Graph API is only available via the page id as well.
Try using the page_id instead (in this case 131141113604635).
https://graph.facebook.com/131141113604635?access_token=[my_access_token]
You may get this id by opening the page on the browser and pressing Ctrl+U, Ctrl+F and searching for a 'page_id' value.

How to set image, description and title for like, comment, send in cakephp facebook plugin?

I’m using webtechnick cakephp facebook plugin. I want to set image description and title for like send and comments. There are many like and send in one page. Current site get same title(what in the title tag in the html ) . i want to set different titles and descriptions for each like and send.
i want to set different titles and descriptions for each like and send.
Then have them point to different URLs, and set up a HTML page under each of those that contains the appropriate OG meta tags.