I'm new to Facebook4j and I want to sync my blog with Facebook And Twitter? The main idea is, everytime a new post is publised, a picture is simultaneously posted on social media, with an image and a caption (containing a link).
I've used this snippet for Facebook4, but it does not seem to be working. Picture is posted, but no caption is added to it !!
Media media = new Media(notificationPicture);
photoUpdate = new PhotoUpdate(media);
photoUpdate.setMessage(notificationCaption);
facebook.postPhoto(media);
Could you please tell what's wrong or missing with this snippet ?
Thank you very much.
Related
I'm a newbie and in progress learning to code. Currently, I'm learning to chap Retrofit & API but have meet a problem that don't have on Google,I researched 2 days ago but cannot :(
This is my all images that i uploaded in 1 album: https://imgur.com/gallery/3fEbSEz
This is all informations related to authorization that i just registered (i think so, i followed the API docs imgur):
Client Name Client ID Client Secret
Get Images Imgur e17abdfa6dd2f71 85411f4e553fd0a5aab2740ea48abe296c8370bf
Through this link: https://api.imgur.com/models/gallery_album , I tried copy paste and replace content in {} by 3fEbSEz.
Example: https://api.imgur.com/3/gallery/album/3fEbSEz/images but as you can see, it cann't access into my album and display as json file format.
I wanna see the result like this: https://jsonplaceholder.typicode.com/photos . Yupp, like this, but ... hmm, i tried many times :((
So who can help me for this case, thanks so much for all helping!!!
This is error be returned when i tried manual link
I want to create an app in Android and I want to share text with a picture to telegram but I do not want the pictures and the text to be separated. I don't know how to do this.
Hopefully it works fine, I tried same.
$.sendPhoto(image_url,{caption : 'i am attached text with image'});
//bot.sendPhoto(chatId,image_url,{caption : 'i am attached text with image'}); /* TRY these according to you.
Or, if you want to send it from Telegram rest api, then call this api:
API URL : 'https://api.telegram.org/bot'+token+'/sendPhoto?
chat_id='+chatID+'&photo='+imageSrc+'&caption='+(message ?message : '');
METHOD : GET
I am trying to implement the Facebook share functionality in my app but when I click on the share button I get the following image:
Here's the code that I am using:
ShareDialog shareDialog = new ShareDialog(ResultsActivity.this);
if (ShareDialog.canShow(ShareLinkContent.class)) {
ShareLinkContent linkContent = new ShareLinkContent.Builder()
.setQuote("Hi Guys, I have completed Level " + level + " and I scored " + score + ". Can you beat my score?")
.setContentUrl( Uri.parse("http://play.google.com/store/apps/details?id="
+ getPackageName()))
.build();
shareDialog.show(linkContent);
}
The google play link works fine and it has icon image and the necessary images.
When I was browsing for solution online, I found that Facebook OpenGraph Debugger helps in determining the cause. So, I used this link to look for any causes and Facebook was complaining about missing og:type as shown below:
What code should I add in android studio in order to fix this problem? Any help or suggestion will be greatly appreciated.
Ok, so the image finally appeared. I had to give it at least 6 hours for the image to appear. All I did was go back to the Facebook debugger link, and refresh my play store link and it showed me a preview with the image.
So if anyone is facing the same issue, please be patient. :)
I am using Picasa API to show user's google photos albums in my site.
I am using google's GData library. Here is my code:
PicasawebService service = new PicasawebService("MyApp");
service.setAuthSubToken("MyAccessToken");
Query query = generateQuery("https://picasaweb.google.com/data/feed/api/user/default");
query.setStringCustomParameter("kind", "album");
query.setMaxResults(1000);
UserFeed feed = service.getFeed(query, UserFeed.class);
Using this code I can see all of my albums - both old and new ones, but some users complain that they do not see all of their albums.
Any idea what can be the problem? Is it something in my code? or google photos isn't fully synced with picasa API?
Thanks.
Any idea what can be the problem? Is it something in my code? or
google photos isn't fully synced with picasa API?
It seems that this is a bug with the API. Albums created as "Shared Albums" don't appear in the API.
Steps to reproduce:
From the https://photos.google.com, click Upload and upload a picture.
In the popup shown after the image uploads, click Shared Album then New shared album and give it a name.
Confirm that the album exists at https://photos.google.com/albums and is marked as Shared.
Use the API to list your albums.
You'll find that the newly created album isn't visible via the API.
If you click Add to Album instead of Shared Album in step 2 above, the album will be visible via the API. If this unshared album is later shared, it remains visible. The problem only occurs if the album is shared when it is created.
The provided post is not working nowadays. One way to do it now is through google +.
Go to google+
Create a post and upload the photos that you want to share through picasa api and
publish the post.
Go to your home page google+ profile. In the new published post on the bottom left corner, you will see a "Show album" link, copy the link. It contains user id and album id accessible through picasa feeds.
Take into consideration that this is a hack that probably it gonna not work soon.
Good morning!
I am new to this forum.
I'm making an app for Android.
I have a photo gallery that I see is within a GridView.
Some photos charging me with no problems, while others give me this error:
ThreadPoolExecutor.runWorker (ThreadPoolExecutor $ Worker)
I also tried to change the format of those photos but nothing.
The photos are all taken from the same site.
I think the problem is in particular images.
This is the vector where there are several url of the photo
public final static String[] images = new String[]{"link1.jpg", "link2.jpg", ...};
I need help because I do not know how to solve this problem.