C# facebook graph / How to upload an image on Facebook album? - c#

I am trying to upload an image using ASP.NET with C#.I do not how to send image in parameter
source="F://sample.jpg".I have also tried to send an image in a byte format.
URL is
http://graph.facebook.com/album_id/photos?access_token=access_tokenvalue;
Post Data is
source= "F://sample.jpg"
I am getting an exception.Please help me to sort out this issue.
Thanks in advance.

Could you post the error message you're getting? Might be helpful in tracking down exactly what the error is. In any case, I'm not too familiar with the Facebook APIs but it appears in the Graph API document for Photo that you have to prefix the file path with an #.
source="#F:\\sample.jpg"

Related

QR page refresher C#

On my website I have a list of different documents to be sighned with QR. We use external mobile application to sign these docs via QR.
The question is there a way to reload page after successful QR scan using this app?
Can someone explain me how should it work?
I know that I have to send json string to app using QR Code and I get json string with result.
Then put the result to my db.
Thanks!

Return image from SQL database using ASP.NET Web API

I'm trying to build Web API that returns images from my SQL database but I'm facing issues with the path of my image that says:
couldn't find a part of the path
Any suggestions would be appreciated.
Check your image folder, did it come with a capital letter? Because your code is displaying Image not image.

C# after uploading image, get url of uploaded image in google cloud storage

I created an image uploader using c# mvc5. I managed to upload the images to google cloud storage. Now I want to get the url of the uploaded file to return to the user for reference. I've been looking around the docs in google and can't find it. Anyone can provide me some links or codes will be helpful. Thanks.
See the documentation page on Request URIs.
In general, if you upload to a bucket named foo and an object named bar/baz, the URL for your object will be:
https://storage.googleapis.com/foo/bar/baz
With the GCS C# .NET library, you can use one of the Storage.v1.Data.Object class properties:
MediaLink to get the download link, or
SelfLink to get the canonical URL for the object.

How to get image posted in facebook using HashTag - C#

In my application, I was asked to get the facebook feeds and the posted image using its Hashtag.
I have tried with the below URL.
https://graph.facebook.com/search?q=%23test&access_token={Accesstoken}
I got the feeds, but the posted image are not showing up. Also the Access token is need to be generated all the time when i log in.
Please help to get the posted image from facebook using HASHTAG with any sample url or C# code.
Thanks in advance...

How to upload an image in windows phone application?

How to upload image using HttpWebRequest or anything else plus I have to display results from the website in my application. Please help...
There's an example of how to do this which include for both the client and server at
http://chriskoenig.net/2011/08/19/upload-files-from-windows-phone/
You can use WebClient.FileUpload to upload images

Categories

Resources