How you attribute authors of the CC works will depend on whether you modify the content, if you create a derivative, if there are multiple sources, etc...
If you are publishing content on the web, or social media sites, you are probably using photos or images you’ve found through a search on the web. Sometimes, it can be tricky attributing photos properly, and it’s important to do so correctly. The reason it’s important to be correct about this is to not only be courteous, but to abide by the law.