Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I get image URL from OpenGraphData? #58

Closed
parthpatel1105 opened this issue Apr 7, 2018 · 6 comments
Closed

How can I get image URL from OpenGraphData? #58

parthpatel1105 opened this issue Apr 7, 2018 · 6 comments

Comments

@parthpatel1105
Copy link

Hi,

I am using URLEmbeddedView to get meta data. I am not getting image URL since library has been updated. I am using below code to get meta data.

[[OGDataProvider sharedInstance] fetchOGDataWithUrlString:@"www.testurl.com" completion:^(OpenGraphData * obj_data, NSError * error) {

    NSLog(@"data object = %@",obj_data);
}];

So how can I get imageURL, pageTitle, createdAt, pageType, siteName, sourceUrl, url using OpenGraphData object?

@AlexHHsiao
Copy link

Same question here.

@AlexHHsiao
Copy link

@parthpatel1105 Hi. Did it worked for you in older version?

@parthpatel1105
Copy link
Author

parthpatel1105 commented Apr 24, 2018 via email

marty-suzuki added a commit that referenced this issue Apr 24, 2018
marty-suzuki added a commit that referenced this issue Apr 24, 2018
@marty-suzuki
Copy link
Owner

@parthpatel1105 @AlexHHsiao
I apologize for the delay in replying.
I've added @objc attributes to each properties.
It makes to be able to access properties of OpenGraphData from Objective-C.
Please try 0.15.1

@parthpatel1105
Copy link
Author

parthpatel1105 commented Apr 24, 2018

@marty-suzuki Thank you so much for your valuable response and support which helps me a lot.

@AlexHHsiao
Copy link

@marty-suzuki @MagdaSzlagor I don't know if this is just on me. I am able to access properties of OpenGraphData, but all of them are showing as nil no matter which url I give.
I am still using fetchOGDataWithUrlString method in objective c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants